PHP code example of coderello / laravel-proximage

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

    

coderello / laravel-proximage example snippets


proximage($imageUrl)
  ->get();

proximage($imageUrl)
  ->width(300)
  ->get();

use Coderello\Proximage\Enums\Parameter;

proximage($imageUrl)
  ->crop(Parameter\CropAlignment::CENTER)
  ->transformation(Parameter\Transformation::SQUARE)
  ->get();
bash
php artisan vendor:publish --tag="proximage-config"