PHP code example of creode / laravel-image-optimiser

1. Go to this page and download the library: Download creode/laravel-image-optimiser 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/ */

    

creode / laravel-image-optimiser example snippets


$this->app->singleton('optimiser', function () {
    return new MyNewOptimiserClass();
});
bash
php artisan vendor:publish --tag="image-optimiser-config"