承接 workplacebuddy/adaptive-card 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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/AdaptiveCard for the main card
  • AdaptiveCard/Colors to fiddle with some colors
  • Etc..

Some more specific elements are in their own namespaces, like the actions and the inputs:

  • AdaptiveCard\Action\OpenUrl to open an URL when clicked
  • AdapticeCard\Input\Text to 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

  • Clone this repo
  • Install the dependencies, both from Packagist and NPM
    • composer install
    • npm install
    • Prettier is used to format the end result
  • Optionally run composer run fetch-schema to fetch a fresh schema
  • Run composer run generate to generate a new version of classes/enums

统计信息

  • 总下载量: 10.04k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04