定制 peter9x/laravel-toconline-api 二次开发

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

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

peter9x/laravel-toconline-api

最新稳定版本:v0.0.4

Composer 安装命令:

composer require peter9x/laravel-toconline-api

包简介

Laravel package for toconline API

README 文档

README

Build Status Latest Stable Version License

laravel-toconline-api

Laravel Toconline API

Installation

  1. Install the package via Composer:
composer require peter9x/laravel-toconline-api
  1. Publish the configuration file:
php artisan vendor:publish --provider="Mupy\\TOConline\\TOConlineServiceProvider" --tag=config
  1. Add the following to your .env file:
TOC_CLIENT_ID=your-client-id
TOC_CLIENT_SECRET=your-client-secret
TOC_URI_OAUTH=https://example.com/callback
  1. Optional config to add on the .env file:
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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-05