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.
Documentation for Gyazo API can be found on Gyazo API
composer require sdpgs/gyazo$gyazoClient = GyazoClient::getInstance('{your Gyazo access token}');
/** @var string $imageBinary **/
$imageBinary = '*****';
$response = $gyazoClient->uploadImage($imageBinary, 'hoge.png');Move directory to tests/Feature and generate copy .env.example to .env.
cp .env.example .envAnd then add GYAZO_ACCESS_TOKEN, as above-mentioned.
GYAZO_ACCESS_TOKEN={your Gyazo access token}And run following composer script.
composer testThank you for considering to sdpgs-gyazo! But, The contribution guide doesn't get ready yet. If you would so, please wait just a moment.
sdpgs-gyazo is open-sourced sofware licensed under the MIT license.