amir2b/image-fit

This package is for fitting image
879 7
Install
composer require amir2b/image-fit
Latest Version:1.2.9
PHP:>=5.5
License:MIT
Last Updated:Dec 19, 2023
Links: GitHub  ·  Packagist
Maintainer: amir2b

image-fit for Laravel 5

Laravel image fit

Installation

The Image-Fit Service Provider can be installed via Composer by requiring the amir2b/image-fit package and setting the minimum-stability to dev (required for Laravel 5) in your project's composer.json.

{
    "require": {
        "laravel/framework": "5.0.*",
        "amir2b/image-fit": "^1.2"
    }
}

or

Require this package with composer:

composer require amir2b/image-fit

Update your packages with composer update or install with composer install.

Find the providers key in config/app.php and register the ImageFit Service Provider.

for Laravel 5.1+

    'providers' => [
        // ...
        Amir2b\ImageFit\ImageFitServiceProvider::class,
    ]

for Laravel 5.0

    'providers' => [
        // ...
        'Amir2b\ImageFit\ImageFitServiceProvider',
    ]

Copy the package config to your local config with the publish command:

php artisan vendor:publish --provider="Amir2b\ImageFit\ImageFitServiceProvider"

Related Packages

approached/laravel-image-optimizer

Image optimizer for laravel

144,104 153
plank/laravel-mediable

A package for easily uploading and attaching media files to models with Laravel

1,642,337 827
barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

26,892,778 2,754
unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMC...

3,540,342 2,152
despark/laravel-image-purify

Laravel wrapper for https://github.com/despark/image-purify

2,372 1