pixelstorage / client
There is no license information available for the latest version (dev-master) of this package.
PixelStorage client
dev-master
2018-04-11 04:51 UTC
Requires
- guzzlehttp/guzzle: >=5.2
Requires (Dev)
- crodas/phpunit-compat: ^1.7
- paragonie/random_compat: ^2.0
This package is not auto-updated.
Last update: 2024-11-21 08:40:52 UTC
README
PixelStorage PHP client
Installation
composer require pixelstorage/client
Usage
use PixelStorage; use PixelStorage\Client; // Configure $client = new Client( "http://localhost", // Usage localhost for API calls 'public_key', 'private_key'); // Use for URLs (maybe through a CDN) $client->setHost('https://image.mysite.com/'); PixelStorage::configure($client); // Print the image with some filters echo PixelStorage::image($image_id)->fit(203, 203, 'top-left')->url() . "\n";