PHP code example of spiral / pieces

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


const LOAD = [
    //...
    \Spiral\Pieces\Bootloaders\PiecesBootloaders::class,
]

<script>
  window.metadata = <?= json_encode($meta) 
html
<dark:use path="pieces/runtime-meta" as="pieces:meta"/>

 #compile
/** @var Article $entity */