pixelstorage / client
该包最新版本(dev-master)没有可用的许可证信息。
PixelStorage 客户端
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-09-12 07:35:19 UTC
README
PixelStorage PHP 客户端
安装
composer require pixelstorage/client
用法
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";