PHP code example of spiral / pages

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

    

spiral / pages example snippets




//Config example
return [
    ...
    'page' => 'spiral-cms-page',
    ...
];


<dark:use path="pages:cms/*" prefix="pages:"/>


/** @var \Spiral\Pages\Database\Page $page */

<pages:meta page="<?= $page