processton-io/processton-card

This package will generate cards

1.0.1 2024-05-26 10:38 UTC

This package is auto-updated.

Last update: 2024-11-05 06:25:17 UTC


README

Latest Version on Packagist Total Downloads GitHub Actions

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.