inserve / pax8-api-php
A PHP wrapper for the Pax8 API
0.1.3
2024-09-30 14:35 UTC
Requires
- php: ^8.2
- guzzlehttp/guzzle: ^7.7
- phpdocumentor/reflection-docblock: ^5.3
- psr/log: ^3.0
- symfony/property-access: ^6.3|^7
- symfony/serializer: ^6.3|^7
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.2
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^5.22
README
Status
About
A PHP Wrapper for Pax8
Installation
composer require inserve/pax8-api-php
Usage example
<?php use Inserve\Pax8API\Pax8APIClient; require 'vendor/autoload.php'; $api = new Pax8APIClient(); $accessToken = $api->authenticate('client.id', 'client.secret'); if (! $accessToken) { echo 'Authentication failed'; return; } $subscriptions = $api->company->list();