peter9x/laravel-toconline-api
最新稳定版本:v0.0.4
Composer 安装命令:
composer require peter9x/laravel-toconline-api
包简介
Laravel package for toconline API
关键字:
README 文档
README
laravel-toconline-api
Laravel Toconline API
Installation
- Install the package via Composer:
composer require peter9x/laravel-toconline-api
- Publish the configuration file:
php artisan vendor:publish --provider="Mupy\\TOConline\\TOConlineServiceProvider" --tag=config
- Add the following to your
.envfile:
TOC_CLIENT_ID=your-client-id TOC_CLIENT_SECRET=your-client-secret TOC_URI_OAUTH=https://example.com/callback
- Optional config to add on the
.envfile:
TOC_BASE_URL=https://example.com TOC_BASE_URL_OAUTH=https://example.com/oauth
Usage
use Mupy\TOConline\Facades\TOConline; try { $docs = TOConline::api()->documents(); } catch (\Throwable $th) { // Handle exceptions as needed }
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-05