PHP code example of timoetting / kirby-builder

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

    

timoetting / kirby-builder example snippets


 # /site/templates/yourtemplate.php
foreach($page->mybuilder()->toBuilderBlocks() as $block):
  snippet('blocks/' . $block->_key(), array('data' => $block));
endforeach;

<php # /site/snippets/blocks/quote.php