PHP code example of sietseveenman / kirby3-toilet

1. Go to this page and download the library: Download sietseveenman/kirby3-toilet 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/ */

    

sietseveenman / kirby3-toilet example snippets


$articles = $page->children();

poop( $articles );

foreach( poop($articles), $item) {
    <a href="<?= $item->url() 

// site/config.php
return [
    'sietseveenman.kirby3-toilet' => [
        // Customize the timeout duration for loading fresh dumps.
        // Default = 2000
        'poop-timeout' => 500,
        // Dump in silence if you want to.
        // Default = false
        'muted' => true,
        // Set permission for user roles to use the toilet.
        // Default = ['admin']
        'roles' => ['developer', 'vegan'],
    ],
];