PHP code example of sayamaapps / kirby-kizami

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

    

sayamaapps / kirby-kizami example snippets



$base = dirname(__DIR__);
' => [
    'index' => __DIR__, 'base' => $base, 'storage' => $base . '/storage',
    'content' => $base . '/content', 'site' => $base . '/site',
]]))->render();

return [
    'kizami.active' => true,
    'kizami.redirects' => ['call' => 'tel:+491234567890'],
];

<?= $page->redirectAnchor('call', 'Call us', 'tel:+491234567890', 'header') 

// site/config/config.php
'kizami.events' => ['download' => ['label' => ['en' => 'Download'], 'detail' => true]],

// route or template, once per request
$page->kizamiEvent('download', 'prices.pdf');

 return ['user' => 'client', 'hash' => '$2y$10$…']; // password_hash('…', PASSWORD_DEFAULT)
sh
php site/plugins/kizami/maintenance.php compact /abs/path/storage/kizami
php site/plugins/kizami/bin/kizami-snapshot /abs/path/storage/kizami /backups/new.sqlite
 snippet('kizami/events')