Skip to content

tanakaphper/sdpgs-gyazo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sdpgs-gyazo

MIT License tests MIT PHPStan

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.

About

Simple gyazo api client

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors