fuitad/gazelle-laravel-wrapper
Composer 安装命令:
composer require fuitad/gazelle-laravel-wrapper
包简介
A Laravel wrapper for the Kitsu/Zou production tracker PHP client (fuitad/gazelle)
README 文档
README
A Laravel wrapper for fuitad/gazelle, the PHP client for the Kitsu / Zou production tracker API.
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
Installation
composer require fuitad/gazelle-laravel-wrapper
The service provider and facade are registered automatically via Laravel's package auto-discovery.
Configuration
Publish the config file:
php artisan vendor:publish --tag=gazelle-config
Then set your values in .env:
GAZELLE_HOST=https://kitsu.example.com/api GAZELLE_SSL_VERIFY=true GAZELLE_USE_REFRESH_TOKEN=true
| Key | Default | Description |
|---|---|---|
GAZELLE_HOST |
http://localhost/api |
Base URL of your Kitsu / Zou API |
GAZELLE_SSL_VERIFY |
true |
Verify SSL certificates |
GAZELLE_USE_REFRESH_TOKEN |
true |
Auto-refresh access token on expiry |
Usage
Via the Facade
use GazelleLaravelWrapper\Facades\Gazelle; // Authenticate Gazelle::logIn('user@example.com', 'password'); // List all open projects $projects = Gazelle::project->allOpenProjects(); // Get all shots for a project $shots = Gazelle::shot->allShotsForProject($projects[0]); // Log out Gazelle::logOut();
Via dependency injection
use Gazelle\Gazelle; class ProductionController extends Controller { public function __construct(private readonly Gazelle $gazelle) {} public function index(): array { return $this->gazelle->project->allOpenProjects(); } }
Using an existing token
Gazelle::setToken('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'); // Or with a refresh token Gazelle::setToken([ 'access_token' => 'eyJ...', 'refresh_token' => 'eyJ...', ]);
MFA login
// TOTP Gazelle::logIn('user@example.com', 'password', totp: '123456'); // Email OTP Gazelle::sendEmailOtp('user@example.com'); Gazelle::logIn('user@example.com', 'password', emailOtp: '654321');
Available Modules
All modules are accessible as properties on the Gazelle instance (or facade):
| Property | Description |
|---|---|
->asset |
Assets, asset types, asset instances |
->shot |
Shots, sequences, episodes |
->task |
Tasks, task types, task statuses, comments |
->project |
Projects, project settings, team management |
->person |
People, departments, avatars |
->user |
Current-user-scoped queries |
->files |
Output files, working files, preview files, softwares |
->casting |
Shot / asset / episode casting |
->edit |
Edits |
->entity |
Generic entities and entity types |
->studio |
Studios |
->sync |
Event feed, project export / import |
->playlist |
Playlists |
->concept |
Concepts |
->context |
Admin/user-context-aware convenience wrappers |
See the fuitad/gazelle documentation for the full method reference of each module.
Testing
composer install ./vendor/bin/phpunit
License
MIT
fuitad/gazelle-laravel-wrapper 适用场景与选型建议
fuitad/gazelle-laravel-wrapper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 fuitad/gazelle-laravel-wrapper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fuitad/gazelle-laravel-wrapper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-26