| Package Data | |
|---|---|
| Maintainer Username: | nasyrov |
| Maintainer Contact: | inasyrov@ya.ru (Evgenii Nasyrov) |
| Package Create Date: | 2017-06-09 |
| Package Last Update: | 2020-06-21 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-28 03:01:36 |
| Package Statistics | |
|---|---|
| Total Downloads: | 47,517 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 14 |
| Total Watchers: | 0 |
| Total Forks: | 6 |
| Total Open Issues: | 3 |
Laravel package for generating URLs with Imgix.
Make sure all dependencies have been installed before moving on:
First, pull the package via Composer:
$ composer require nasyrov/laravel-imgix
Next, register the service provider in config/app.php:
'providers' => [
...
Nasyrov\Laravel\Imgix\ImgixServiceProvider::class,
...
]
Optionally register the facade in config/app.php:
'aliases' => [
...
'Imgix' => Nasyrov\Laravel\Imgix\Facades\Imgix::class,
...
]
Finally, publish and update the config config/imgix.php:
php artisan vendor:publish --tag=imgix
Imgix::createUrl(string $path, array $params = []) : string
$path The path to the image
$params The image parameters
echo Imgix::createUrl('test.jpg', ['w' => 100, 'h' => 100]);
// Prints out:
// http://test.imgix.net/test.jpg?w=100&h=100
imgix(string $path, array $params = []) : string
$path The path to the image
$params The image parameters
echo imgix('test.jpg', ['w' => 100, 'h' => 100]);
// Prints out:
// http://test.imgix.net/test.jpg?w=100&h=100
$ composer lint
$ composer test
If you discover any security related issues, please email inasyrov@ya.ru instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.