PHP code example of fostercommerce / imagerx-imgproxy

1. Go to this page and download the library: Download fostercommerce/imagerx-imgproxy 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/ */

    

fostercommerce / imagerx-imgproxy example snippets


return [
    'baseUrl' => getenv('IMGPROXY_BASE_URL'),
    'key' => getenv('IMGPROXY_KEY') ?: null,
    'salt' => getenv('IMGPROXY_SALT') ?: null,
    'customSignature' => getenv('IMGPROXY_CUSTOM_SIGNATURE') ?: null,
    'encoded' => true,
    'defaultParams' => [],
];