PHPackages                             jleehr/canto-saas-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. jleehr/canto-saas-api

ActiveLibrary[API Development](/categories/api)

jleehr/canto-saas-api
=====================

Client library for Canto SaaS APIs.

3.0.0(3w ago)14.9k↑592.9%4MITPHPPHP ^8.1CI passing

Since Oct 20Pushed 3w agoCompare

[ Source](https://github.com/jleehr/canto-saas-api)[ Packagist](https://packagist.org/packages/jleehr/canto-saas-api)[ Docs](https://github.com/jleehr/canto-saas-api)[ RSS](/packages/jleehr-canto-saas-api/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (12)Versions (5)Used By (0)Security (2)

PHP client for Canto API
========================

[](#php-client-for-canto-api)

A PHP library to interact with the [Canto SaaS API](https://www.canto.com/).

This library was originally developed by [eCentral](https://github.com/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
------------

[](#installation)

```
composer require jleehr/canto-saas-api
```

Example usage
-------------

[](#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();
```

Security notes
--------------

[](#security-notes)

- The `httpClientOptions => ['debug' => true]` option passes Guzzle's debug mode through, which writes the complete HTTP traffic — including the `Authorization` header and OAuth credentials — to STDOUT. Use it for local development only, never in production. If you need custom HTTP behavior, inject a preconfigured client via the `httpClient` option instead.
- See [SECURITY.md](SECURITY.md) for how to report vulnerabilities.

License
-------

[](#license)

MIT. See [LICENSE](LICENSE). Original work © eCentral GmbH.

Trademark notice
----------------

[](#trademark-notice)

Canto is a trademark of Canto, Inc. This package is an independent, unofficial client library and is not affiliated with or endorsed by Canto.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance95

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~483 days

Total

3

Last Release

22d ago

Major Versions

1.0.3 → 2.0.02026-06-03

2.0.0 → 3.0.02026-06-12

PHP version history (2 changes)1.0.3PHP ^7.4 || ^8.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1804614?v=4)[Jan Leehr](/maintainers/jleehr)[@jleehr](https://github.com/jleehr)

---

Top Contributors

[![jleehr](https://avatars.githubusercontent.com/u/1804614?v=4)](https://github.com/jleehr "jleehr (24 commits)")[![ChrisB9](https://avatars.githubusercontent.com/u/7099583?v=4)](https://github.com/ChrisB9 "ChrisB9 (13 commits)")[![coding46](https://avatars.githubusercontent.com/u/1724196?v=4)](https://github.com/coding46 "coding46 (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

apiCanto

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jleehr-canto-saas-api/health.svg)

```
[![Health](https://phpackages.com/badges/jleehr-canto-saas-api/health.svg)](https://phpackages.com/packages/jleehr-canto-saas-api)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.7k409.0k6](/packages/theodo-group-llphant)[keboola/storage-api-client

Keboola Storage API PHP Client

10405.9k40](/packages/keboola-storage-api-client)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
