sdpgs / gyazo
simple gyazo client
Requires
- php: ^8.1.0
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9.5
- vlucas/phpdotenv: ^5.5
This package is auto-updated.
Last update: 2025-06-21 11:00:10 UTC
README
Introduction
sdpgs-gyazo is a simple gyazo api client on PHP. You can upload,get and delete image to Gyazo without any complex optional http parameters. Only you need to do is to register your application and then generate your access token in Gyazo. Gyazo access token is only required sdpg-gyazo parameter. If you want to know more detailed information, please go to following official document page.
Official Documentation
Documentation for Gyazo API can be found on Gyazo API
Install
composer require sdpgs/gyazo
Usage
$gyazoClient = GyazoClient::getInstance('{your Gyazo access token}'); /** @var string $imageBinary **/ $imageBinary = '*****'; $response = $gyazoClient->uploadImage($imageBinary, 'hoge.png');
How to test
Move directory to tests/Feature and generate copy .env.example to .env.
cp .env.example .env
And then add GYAZO_ACCESS_TOKEN, as above-mentioned.
GYAZO_ACCESS_TOKEN={your Gyazo access token}
And run following composer script.
composer test
Contributing
Thank you for considering to sdpgs-gyazo! But, The contribution guide doesn't get ready yet. If you would so, please wait just a moment.
License
sdpgs-gyazo is open-sourced sofware licensed under the MIT license.