PHPackages                             agilepixel/imagesrespond - 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. agilepixel/imagesrespond

ActiveLibrary

agilepixel/imagesrespond
========================

On-the-fly responsive images

v0.2.1(6y ago)016MITPHPPHP &gt;=7.1.29

Since Mar 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/agilepixel/ImagesRespond)[ Packagist](https://packagist.org/packages/agilepixel/imagesrespond)[ RSS](/packages/agilepixel-imagesrespond/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (5)Versions (10)Used By (0)

ImagesRespond
=============

[](#imagesrespond)

[![Build Status](https://camo.githubusercontent.com/0e7a959df03f1d2945cad78b43177069b2c1f9b04f67a9cfd6853e428dbb25f7/68747470733a2f2f7472617669732d63692e6f72672f6167696c65706978656c2f496d61676573526573706f6e642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/agilepixel/ImagesRespond) [![Coverage Status](https://camo.githubusercontent.com/7bf6e48727935bbf7c609c901572affa35b1f68e2ca228ce502fadcbcfbbbc32/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6167696c65706978656c2f496d61676573526573706f6e642f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/agilepixel/ImagesRespond?branch=master)

A quick drop-in PHP library to output scaled images for responsive purposes

Usage
-----

[](#usage)

You have a large image with the following url

`http://my.site/img/my_large_image.png`

Once installed and configured, you can return a scaled version of this image with a width of 200px by amending the requested url:

`http://my.site/img/respond-200-my_large_image.png`

If you need the scaling to be based on height instead of witdh use the following:

`http://my.site/img/respond-200h-my_large_image.png`

### Installation via Composer

[](#installation-via-composer)

`composer require agilepixel/imagesrespond`

### Configure for Apache

[](#configure-for-apache)

Enter into your server configuration or .htaccess, customise based on your desired configuration

```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} respond-[0-9]+h?-.*\.(jpg|gif|png|webp|jpeg)$
RewriteRule ^(.*)$ vendor/agilepixel/imagesrespond/src/rewrite.php [L]

```

### Configure for Nginx

[](#configure-for-nginx)

Enter the following into your Nginx server configuration, customise based on your desired configuration

```
rewrite respond-([0-9]+)h?-.*\.(jpg|gif|png|webp|jpeg)$ /vendor/agilepixel/imagesrespond/src/rewrite.php last;

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

9

Last Release

2553d ago

PHP version history (3 changes)v0.0.1PHP &gt;=5.6.33

v0.2.0PHP &gt;=7.1.25

v0.2.1PHP &gt;=7.1.29

### Community

Maintainers

![](https://www.gravatar.com/avatar/54c6d84272c8c7291b91b992f507b4d7ce5206a1a4033bda80f86858b5161169?d=identicon)[code418](/maintainers/code418)

---

Top Contributors

[![code418](https://avatars.githubusercontent.com/u/316645?v=4)](https://github.com/code418 "code418 (19 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/agilepixel-imagesrespond/health.svg)

```
[![Health](https://phpackages.com/badges/agilepixel-imagesrespond/health.svg)](https://phpackages.com/packages/agilepixel-imagesrespond)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)

PHPackages © 2026

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