PHP code example of oblik / kirby-tester
1. Go to this page and download the library: Download oblik/kirby-tester 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/ */
oblik / kirby-tester example snippets
echo kirby()->render();
echo kirbytest('my-plugin')->render();
return [
'beforeLoad' => function () {
echo 'before Kirby vendor autoload';
},
'afterLoad' => function () {
echo 'after Kirby vendor autoload';
},
'beforeInit' => function () {
echo 'before Kirby instance';
},
'afterInit' => function ($kirby) {
echo 'after Kirby instance';
}
];