PHPackages                             nasyrov/laravel-imgix - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nasyrov/laravel-imgix

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nasyrov/laravel-imgix
=====================

Laravel package for generating URLs with Imgix.

1.1.0(6y ago)1447.5k6[2 issues](https://github.com/nasyrov/laravel-imgix/issues)[1 PRs](https://github.com/nasyrov/laravel-imgix/pulls)2MITPHPPHP &gt;=7.2

Since Jun 11Pushed 6y agoCompare

[ Source](https://github.com/nasyrov/laravel-imgix)[ Packagist](https://packagist.org/packages/nasyrov/laravel-imgix)[ Docs](https://github.com/nasyrov/laravel-imgix)[ RSS](/packages/nasyrov-laravel-imgix/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (6)Versions (3)Used By (2)

Laravel Imgix
=============

[](#laravel-imgix)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6dd92ac04397a75470c6842fdeea2b7edc2320be3bebfa1c539f080eff942cff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e617379726f762f6c61726176656c2d696d6769782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nasyrov/laravel-imgix)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/5d726473c4a051d7070811621e2bd63c2458ff03b7d74161aec5c21b2fed811b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e617379726f762f6c61726176656c2d696d6769782f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/nasyrov/laravel-imgix)[![Coverage Status](https://camo.githubusercontent.com/d3feacfc35053dba0d6e241788133a0ca10f3f5f44a380bcd047afcac2740acb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e617379726f762f6c61726176656c2d696d6769782e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/nasyrov/laravel-imgix/code-structure)[![Quality Score](https://camo.githubusercontent.com/d011fda5cd1c7d2ba320aa6857f3686157c972e3fc5f9a4988082963817e4127/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e617379726f762f6c61726176656c2d696d6769782e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/nasyrov/laravel-imgix)[![Total Downloads](https://camo.githubusercontent.com/84ce65625a49be368501c5dc1fb728a665bc138f2bbe10b287cd9829f1b515e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e617379726f762f6c61726176656c2d696d6769782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nasyrov/laravel-imgix)

Laravel package for generating URLs with [Imgix](https://www.imgix.com/).

Requirements
------------

[](#requirements)

Make sure all dependencies have been installed before moving on:

- [PHP](http://php.net/manual/en/install.php) &gt;= 7.2
- [Composer](https://getcomposer.org/download/)

Install
-------

[](#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
-----

[](#usage)

### Facade

[](#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

[](#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
-------

[](#testing)

```
$ composer lint
$ composer test
```

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Evgenii Nasyrov](https://github.com/nasyrov)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1105 days

Total

2

Last Release

2200d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.6.4

1.1.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d5180ba0cd30309ada4562457c6337069906fea97f827f1c24b82fddb1bdc9a?d=identicon)[nasyrov](/maintainers/nasyrov)

---

Top Contributors

[![xuneXTW](https://avatars.githubusercontent.com/u/26743261?v=4)](https://github.com/xuneXTW "xuneXTW (1 commits)")

---

Tags

imgixlaravellaravel-packagephplaravelcdnimgix

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/nasyrov-laravel-imgix/health.svg)

```
[![Health](https://phpackages.com/badges/nasyrov-laravel-imgix/health.svg)](https://phpackages.com/packages/nasyrov-laravel-imgix)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[riclep/laravel-storyblok

A Laravel wrapper around the Storyblok API to provide a familiar experience for Laravel devs

6277.0k5](/packages/riclep-laravel-storyblok)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90128.1k](/packages/emargareten-inertia-modal)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
