dev-master 2022-06-08 12:18 UTC

This package is auto-updated.

Last update: 2023-06-08 15:34:25 UTC


Provides a small object oriented api to generate imgix urls.

Travis Codecov Style-CI PHP version GitHub issues Contributions welcome license


composer.phar require hschulz/imgix-php-api



require_once './vendor/autoload.php';

use \hschulz\imgix\FocalPointCrop;
use \hschulz\imgix\UriBuilder;

/* Create a new builder with your own imgix domain */
$builder = new UriBuilder('https://your-domain.imgix.net');

/* Create and configure features */
$focalPoint = new FocalPointCrop();

/* Apply features to the query builder */

/* Create the uri to the requested image path */
$uri = $builder->getImageUri('/path/to/your/image.jpg');

echo $uri
$ https://your-domain.imgix.net/path/to/your/image.jpg?fp-x=0.7&fp-y=0.2&fp-z=1.2 

Running the tests

# Either use the phpunit with whatever parameters you prefer
./vendor/bin/phpunit --bootstrap=./vendor/autoload.php --whitelist=./src/ --testdox ./Tests/

# Or run the composer test script which is set to the above parameters
composer.phar test


Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.


We use SemVer for versioning. For the versions available, see the tags on this repository.


See also the list of contributors who participated in this project.


This project is licensed under the MIT License - see the LICENSE file for details