sdpgs/gyazo-laravel
最新稳定版本:1.0.0
Composer 安装命令:
composer require sdpgs/gyazo-laravel
包简介
sdpgs/gyazo-laravel derives from sdpgs/gyazo, optimized to Laravel app
README 文档
README
Introduction
see sdpgs-gyazo
Get Started
Requires PHP 8.1+
First you have to do is to composer require:
composer require sdpgs/gyazo-laravel
Next, publish the config file into your Laravel configs:
php artisan vendor:publish --tag=sdpgs-gyazo-config
And you can see created config/gyazo.php file in your Laravel project.
Then, you have to add Gyazo access token to .env file as below.
GYAZO_ACCESS_TOKEN=sd...
If you don't get Gyazo access token yet, go Gyazo API dashboard and generate yours.
Finally, you may get available to use Gyazo facade.
use Sdpgs\GyazoLaravel\Facades\Gyazo; $response = Gyazo::uploadImage( imageData: '{image binary as string}', fileName: 'some_file.png', options: [] ); dd($response);
Official Documentation
Documentation for Gyazo API can be found on Gyazo API
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-19