PHP code example of justbetter / statamic-starter-kit

1. Go to this page and download the library: Download justbetter/statamic-starter-kit 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/ */

    

justbetter / statamic-starter-kit example snippets


$this->call('statamic:starter-kit:install', [
    'package' => 'justbetter/statamic-starter-kit',
]);

'convert_to_global_component' => [
    'enabled' => true,
    'collection' => 'globals',
    'page_builder_field' => 'global_page_builder',
    'set_handle' => 'globals_component',
    'relationship_field' => 'globals_component',
],