PHP code example of pyaesone17 / s3-reducer

1. Go to this page and download the library: Download pyaesone17/s3-reducer 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/ */

    

pyaesone17 / s3-reducer example snippets

 php
 <img src="{{ s3_reducer($img->path) }}"/>
 php
'providers' => [
    Pyaesone17\S3ReducerS3\ReducerServiceProvider::class
]
 bash
$ php artisan storage:link
 php
<img src="{{ s3_reducer($img->path) }}"/>
 php
s3_reduce_purge($image->path); 
 php
$schedule->command('s3reducer:purge')->weekly();