trinsic / api
Trinsic API PHP library.
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2026-08-14 17:46:53 UTC
README
The Trinsic API PHP library provides convenient access to the Trinsic API from applications written in PHP.
Documentation
See the Trinsic docs for more detailed information on how to start integrating with our identity acceptance network.
Installation
Install the package with:
composer require trinsic/api
Usage
The package needs to be configured with your app's access token, which is available in the Trinsic Dashboard.
use Trinsic\Api\Api\AttachmentsApi as AttachmentsApi; use Trinsic\Api\Api\NetworkApi as NetworkApi; use Trinsic\Api\Api\SessionsApi as SessionsApi; use Trinsic\Api\Configuration as Configuration; $config = new Configuration(); $config->setAccessToken("your-access-token"); $attachments = new AttachmentsApi(null, $config); $network = new NetworkApi(null, $config); $sessions = new SessionsApi(null, $config);
You can find a full PHP example in the samples folder.
Data residency
By default, the SDK communicates with https://api.trinsic.id. If you have a Verification Profile configured for EU data residency, point the SDK at the EU endpoint by calling setHost on the Configuration.
$config = new Configuration(); $config->setHost("https://api.eu.trinsic.id"); // omit to use the default endpoint $config->setAccessToken("your-access-token"); $sessions = new SessionsApi(null, $config);
SDK Versioning
Our SDKs follow the Semantic Versioning ("SemVer") scheme.
For example, the version number 1.13.0 has a major version of 1, a minor version of 13, and a patch version of 0.
Breaking changes are only introduced alongside a new major version.
Support
Any issues, inquiries, and feature requests can be sent to support@trinsic.id, or feel free to open a GitHub issue here.