PHP code example of hananils / kirby-type-methods

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

    

hananils / kirby-type-methods example snippets


 foreach ($members as $member): 

 if ($member->isType('parents')): 

$object->isPage();

$object->isUser();

$object->isFile();

$page->isType('article');