PHP code example of maximumadvertising / laravel-image-resize

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

    

maximumadvertising / laravel-image-resize example snippets


Mxmm\ImageResize\ImageResizeServiceProvider::class,
 

'ImageResize' => Mxmm\ImageResize\Facade::class,	

/**
 * @param string|null $path
 * @param int|null $width
 * @param int|null $height
 * @param string $action
 * @return string
 */
public static function url(string $path = null, int $width = null, int $height = null, string $action = 'fit'): string
bash
php artisan vendor:publish --provider="Mxmm\ImageResize\ImageResizeServiceProvider"