定制 vongola12324/laravel-imgur 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vongola12324/laravel-imgur

Composer 安装命令:

composer require vongola12324/laravel-imgur

包简介

Laravel wrapper for the Imgur API.

README 文档

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

  1. This project is based on j0k3r/php-imgur-api-client.
  2. 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

统计信息

  • 总下载量: 236
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固