PHP code example of aryehraber / statamic-splash

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

    

aryehraber / statamic-splash example snippets


'q' => '80',
'w' => '1500',
'fit' => 'crop',
'crop' => 'faces,edges',
'auto' => 'format',



return [
    'data_saved' => [
        'description',
        'links',
        'user.username',
        'user.bio',
    ],
    // ...
];



return [
    'data_saved' => 'all',
    // ...
];

php please vendor:publish --tag=splash-config
html
{{ splash:hero_image width="1000" }}
html
{{ hero_image:user }}
  <!-- access available user data -->
{{ /hero_image:user }}