jleehr/canto-saas-api

Client library for Canto SaaS APIs.

Maintainers

Package info

github.com/jleehr/canto-saas-api

pkg:composer/jleehr/canto-saas-api

Statistics

Installs: 4 454

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

2.0.0 2026-06-03 14:52 UTC

This package is auto-updated.

Last update: 2026-06-03 14:56:34 UTC


README

A PHP library to interact with the Canto SaaS API.

This library was originally developed by eCentral under the package name fairway/canto-saas-api. The original repository is no longer available; this is the maintained continuation, published as jleehr/canto-saas-api. The PHP namespace Fairway\CantoSaasApi is kept for backward compatibility.

Installation

composer require jleehr/canto-saas-api

Example usage

use Fairway\CantoSaasApi\ClientOptions;
use Fairway\CantoSaasApi\Client;
use Fairway\CantoSaasApi\Http\LibraryTree\GetTreeRequest;

$clientOptions = new ClientOptions([
    'cantoName' => 'my-canto-name',
    'cantoDomain' => 'canto.de',
    'appId' => '123456789',
    'appSecret' => 'my-app-secret',
]);
$client = new Client($clientOptions);
$accessToken = $client->authorizeWithClientCredentials('my-user@email.com')
                      ->getAccessToken();
$client->setAccessToken($accessToken);
$allFolders = $client->libraryTree()
                     ->getTree(new GetTreeRequest())
                     ->getResults();

License

MIT. See LICENSE. Original work © eCentral GmbH.