processton-io / processton-card
This package will generate cards
1.0.1
2024-05-26 10:38 UTC
Requires
- php: ^8.0|^8.1
- processton-io/processton-interaction: ^1.0
Requires (Dev)
- orchestra/testbench: ^8.0
- phpunit/phpunit: ^9.0
README
Generate Card Structure For Processton Client
Installation
You can install the package via composer:
composer require processton-io/processton-card
Usage
Example
ProcesstonCard::generateCard( ProcesstonCard::generateCardHeader( 'Title', 'Sub Title', 'image.com/dummy', 'icon', [ [ 'label' => 'Action', 'url' => 'abc.com' ] ], 'Some Additional Content Here' ), ProcesstonCard::generateCardBody( 'Some Body Context Here', [ [ 'label' => 'Action', 'url' => 'abc.com' ] ] ), ProcesstonCard::generateCardFooter( 'Some Footer Context Here', [ [ 'label' => 'Action', 'url' => 'abc.com' ] ] ) );
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email ahmadkokab@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.