crosa7 / picsur-php-client
Picsur client for php
v1.0.0
2023-07-14 10:42 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.7
Requires (Dev)
- mockery/mockery: ^1.6
- pestphp/pest: ^2.8
README
A simple php client for @CaramelFur/Picsur image service. Currently it only supports upload and delete. The other possible actions will be implemented in the future or on request.
Installation
composer require crosa7/picsur-php-client
Usage
$picsurClient = new PicsurClient('your-api-key', 'http://your-host', 1234); (port nor required) // For upload $picsurClient->upload('path/to/your-image'); // For delete $picsurClient->delete(['your-image-id', 'another-image-id']);