PHP code example of processton-io / processton-card

1. Go to this page and download the library: Download processton-io/processton-card library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

processton-io / processton-card example snippets


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