PHP code example of mmanos / laravel-image

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

    

mmanos / laravel-image example snippets


'providers' => array(
	// ...
	'Mmanos\Image\ImageServiceProvider',
)

'aliases' => array(
	// ...
	'Image' => 'Mmanos\Image\Image',
)

$image = Image::put($contents);

$image = Image::upload($_FILES['image']);

$image = Image::copy($path);

$image = Image::copyUrl($url);

$url = $image->url();

$url = $image->url('128');

$url = $image->url('128h');

$url = $image->url('128w');

$url = $image->url('128s');
console
$ php artisan config:publish mmanos/laravel-image
console
$ php artisan migrate:publish mmanos/laravel-image
$ php artisan migrate