PHP code example of sdpgs / gyazo-laravel

1. Go to this page and download the library: Download sdpgs/gyazo-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sdpgs / gyazo-laravel example snippets


use Sdpgs\GyazoLaravel\Facades\Gyazo;

$response = Gyazo::uploadImage(
    imageData: '{image binary as string}',
    fileName: 'some_file.png',
    options: []
);

dd($response);
bash
php artisan vendor:publish --tag=sdpgs-gyazo-config