PHPackages                             hcesrl/php-responsive-image-sizes - 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. hcesrl/php-responsive-image-sizes

ActiveLibrary

hcesrl/php-responsive-image-sizes
=================================

Retrieve the correct sizes for a responsive image based on its intrinsic width and its width on screen

1.0.3(4y ago)0464↓66.7%MITPHPPHP &gt;=7.4

Since Oct 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/HCESrl/php-responsive-image-sizes)[ Packagist](https://packagist.org/packages/hcesrl/php-responsive-image-sizes)[ RSS](/packages/hcesrl-php-responsive-image-sizes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Responsive image sizes library ported to PHP
============================================

[](#responsive-image-sizes-library-ported-to-php)

Installation
------------

[](#installation)

composer require hcesrl/php-responsive-image-sizes

Usage
-----

[](#usage)

Please refer to the original javascript library documentation for further informations:

Here is a basic example:

```
