vongola12324 / laravel-imgur
Laravel wrapper for the Imgur API.
v2.0.0
2026-06-25 11:01 UTC
Requires
- php: ^8.2
- illuminate/support: ^10.0|^11.0|^12.0
- j0k3r/php-imgur-api-client: ^4.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^8.0|^9.0|^10.0
- phpunit/phpunit: ^10.5|^11.0
This package is auto-updated.
Last update: 2026-06-25 11:05:22 UTC
README
Laravel wrapper for the Imgur API.
Requires PHP 8.2+ and Laravel 10.x or above.
Built on top of j0k3r/php-imgur-api-client.
Installation
composer require vongola12324/laravel-imgur
Config
You have to add IMGUR_CLIENT_ID and IMGUR_CLIENT_SECRET in your .env file, or client will not be able to work.
See Imgur Api Docs for details.
Usage
Basic Usage
// Create $imgurClient object use Vongola\Imgur\Client as ImgurClient; $imgurClient = new ImgurClient(); // The API calls can be accessed via the $imgurClient object $imgurClient->memegen()->defaultMemes();
Also, You can use Facade instead of new class.
use Vongola\Imgur\Client as ImgurClient; // The API calls can be accessed via the $imgurClient object ImgurClient::memegen()->defaultMemes();
Api
At this time we support the following Apis:
- Account (
$imgurClient->account()) - Album (
$imgurClient->album()) - Comment (
$imgurClient->comment()) - Gallery (
$imgurClient->gallery()) - Image (
$imgurClient->image()) - Memegen (
$imgurClient->memegen())
See Imgur Api Docs for all Api.
Notice
- This project is based on j0k3r/php-imgur-api-client.
- There are some feature available in j0k3r's version, which do not show in Imgur Api Docs, will not provide in this package.
License
MIT License