peter9x/laravel-toconline-api

Laravel package for toconline API

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/peter9x/laravel-toconline-api

v0.0.3 2025-11-14 16:36 UTC

This package is auto-updated.

Last update: 2025-11-14 16:37:06 UTC


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
}