PHP code example of justbetter / statamic-glide-directive
1. Go to this page and download the library: Download justbetter/statamic-glide-directive 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-glide-directive example snippets
@responsive($image, [
'alt' => 'This is an alt text.',
'class' => 'some classes here',
'loading' => 'lazy'
])