PHP code example of glue-agency / craft-glue-cdn-imager-x

1. Go to this page and download the library: Download glue-agency/craft-glue-cdn-imager-x 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/ */

    

glue-agency / craft-glue-cdn-imager-x example snippets


return [
    'baseUrl'       => rtrim(getenv('GLUE_CDN_DOMAIN'), '/'),
    'signKey'       => getenv('GLUE_CDN_SIGN_KEY'),
    'defaultParams' => [
        'dpr' => 2,
    ],
];