New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

xunextw/laravel-imgix

Laravel package for generating URLs with Imgix.
3,011
Install
composer require xunextw/laravel-imgix
Latest Version:4.2.0
PHP:>=7.2
Laravel:6 – 12
Older releases:5
License:MIT
Last Updated:Jul 9, 2025
Links: GitHub  ·  Packagist
Maintainer: xuneXTW

Laravel Imgix

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Laravel package for generating URLs with Imgix.

Requirements

Make sure all dependencies have been installed before moving on:

Install

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

Usage

Facade

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

Helper

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

Testing

$ composer lint
$ composer test

Security

If you discover any security related issues, please email inasyrov@ya.ru instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

nasyrov/laravel-imgix

Laravel package for generating URLs with Imgix.

47,534 14
damianromanowski/simplecdn

Laravel 4 simple content delivery network URL rewriter

862 17
cdn
astrotomic/laravel-imgix

Laravel bindings and facade to generate imgix URLs and support for multiple sour...

28,673 9
tappleby/laravel-asset-manifest

Laravel 4 package for re-mapping assets paths, useful for asset revving using to...

940 4
arubacao/asset-cdn

Serve Laravel Assets from a Content Delivery Network (CDN)

198,942 110

Version History

Version Released PHP Laravel License
4.2.0 >=7.2 >=6.0 MIT
4.1.0 >=7.2 ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0 MIT
4.0.0 >=7.2 ^6.0|^7.0|^8.0|^9.0|^10.0 MIT
3.0.0 >=7.2 ^6.0|^7.0|^8.0 MIT
2.2 >=7.2 ^6.0|^7.0 MIT