inserve/pax8-api-php

A PHP wrapper for the Pax8 API

0.1.1 2024-04-09 08:42 UTC

This package is auto-updated.

Last update: 2024-04-09 08:43:17 UTC


README

PHP Version Require

Status

workflow Latest Stable Version Latest Unstable Version License

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();