imagelint / imagelint-php
A class to convert your image URLs to Imagelint URLs
dev-master
2017-03-24 11:47 UTC
Requires
- php: ^5.3 || ^7.0
- voku/simple_html_dom: ^2.0
Requires (Dev)
- phpunit/phpunit: ^4.8.35 || ^5.7 || ^6.0
Suggests
- laravel/framework: Required to use the Laravel integration
This package is auto-updated.
Last update: 2024-10-27 18:40:52 UTC
README
A class to convert your image URLs to Imagelint URLs
Installation
You can add this library to your project using Composer:
composer require imagelint/imagelint-php
Usage
Basic usage
Imagelint\Imagelint::get('http://yoursite.com/img/cat.jpg')
The code above yields the output below:
https://a1.imagelint.com/yoursite.com/img/cat.jpg
You can also use parameters
Imagelint\Imagelint::get('http://yoursite.com/img/cat.jpg', ['width' => 200])
The code above scales the image to a width of 200px.