workplacebuddy/adaptive-card
最新稳定版本:v2.0.0
Composer 安装命令:
composer require workplacebuddy/adaptive-card
包简介
Classes and enums to generate Adaptive Card elements
README 文档
README
Classes and enums to generate Adaptive Card elements
Definitions are generated from the schema.
Usage
Most of the classes are available in the AdaptiveCard namespace:
AdaptiveCard/AdaptiveCardfor the main cardAdaptiveCard/Colorsto fiddle with some colors- Etc..
Some more specific elements are in their own namespaces, like the actions and the inputs:
AdaptiveCard\Action\OpenUrlto open an URL when clickedAdapticeCard\Input\Textto ask for some text- Etc..
All elements can be found here: https://adaptivecards.io/explorer/, everything should be available -- the elements are generated directly from the manifest/schema.
All elements also have a constructor to quickly create a single element:
For example
$card = new AdaptiveCard\AdapticeCard(); $card->body = [new AdaptiveCard\TextBlock(text: 'Hello world!')]; $card->actions = [ new AdapticeCard\Action\OpenUrl( title: 'Website', url: 'https://www.workplacebuddy.com/', ), ];
How to generate
统计信息
- 总下载量: 10.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04