processton-io/processton-card

1.0.1 2024-05-26 10:38 UTC

This package is auto-updated.

Last update: 2024-09-05 05:52:21 UTC


README

Latest Version on Packagist Total Downloads GitHub Actions

为Processton客户端生成卡片结构

安装

您可以通过composer安装此包

composer require processton-io/processton-card

用法

示例

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'
            ]
        ]
    )
);

测试

composer test

变更日志

有关最近更改的更多信息,请参阅变更日志

贡献

有关详细信息,请参阅贡献指南

安全性

如果您发现任何安全相关的问题,请通过电子邮件ahmadkokab@gmail.com联系,而不是使用问题跟踪器。

鸣谢

许可

MIT许可(MIT)。有关更多信息,请参阅许可文件