PHP code example of plain / kirby-contact

1. Go to this page and download the library: Download plain/kirby-contact 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/ */

    

plain / kirby-contact example snippets


<?= $page->contact_fields()->toContact() 

<?= $page->toShare() 

'plain.contact.types' => [
    'default_type' => [
        'icon'      => 'box',
        'label'      => [ 'en' => 'Custom Service' ],
        'color' => '#5828B8',
        'output'    => [
            'contact'   => 'https://example.com/contact/{value}',
            'share'     => 'https://example.com/share/{url}'
        ]
    ]
];