Classes and enums to generate Adaptive Card elements
Definitions are generated from the schema.
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:
$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/',
),
];