PHP code example of bst27 / laravel-image-proxy

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

    

bst27 / laravel-image-proxy example snippets


<img src="{{ proxy_image('images/example.jpg') }}" alt="Example">

<img src="{{ proxy_image('images/example.jpg', 'default', 'cat.jpg') }}" alt="A black cat">

<img src="http://localhost/img/1AX5...3c1KAw/cat.jpg" alt="A black cat">

'manipulation_strategy' => [
    'default' => [
        'class'  => \Bst27\ImageProxy\Services\ImageManipulator\DefaultManipulator::class,
        'params' => [],
    ],
],
bash
php artisan vendor:publish --provider="Bst27\ImageProxy\ImageProxyServiceProvider"