PHPackages                             xunextw/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. [API Development](/categories/api)
4. /
5. xunextw/laravel-imgix

ActiveLibrary[API Development](/categories/api)

xunextw/laravel-imgix
=====================

Laravel package for generating URLs with Imgix.

4.2.0(10mo ago)02.3k↓50%MITPHPPHP &gt;=7.2

Since Jun 11Pushed 10mo agoCompare

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

READMEChangelog (7)Dependencies (6)Versions (12)Used By (0)

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

40

—

FairBetter than 88% of packages

Maintenance54

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~421 days

Recently: every ~481 days

Total

8

Last Release

313d ago

Major Versions

v1.0.0 → 2.0.02019-12-27

2.2 → 3.0.02021-01-19

3.0.0 → 4.0.02023-08-25

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

2.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26743261?v=4)[Simon Schenker](/maintainers/xuneXTW)[@xuneXTW](https://github.com/xuneXTW)

---

Top Contributors

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

---

Tags

laravelcdnimgix

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[riclep/laravel-storyblok

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

6272.7k4](/packages/riclep-laravel-storyblok)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)

PHPackages © 2026

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