Looking to hire Laravel developers? Try LaraJobs

laravel-toconline-api maintained by peter9x

Description
Laravel package for toconline API
Author
Last update
2026/03/10 12:26 (dev-main)
License
Downloads
435

Comments
comments powered by Disqus

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
}