PHPackages                             mvdgeijn/pax8 - 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. mvdgeijn/pax8

ActiveLibrary[API Development](/categories/api)

mvdgeijn/pax8
=============

Library for communicating with the pax8.com API

v2.7.1(2y ago)01461MITPHPPHP ^7.4|^8.0

Since Feb 4Pushed 2y ago2 watchersCompare

[ Source](https://github.com/mvdgeijn/pax8)[ Packagist](https://packagist.org/packages/mvdgeijn/pax8)[ RSS](/packages/mvdgeijn-pax8/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (25)Used By (0)

Pax8
====

[](#pax8)

A Laravel library for Pax8 Integration. Use the Pax8 Rest API to have your Laravel application communicate directly with your Pax8 account.

Installation
------------

[](#installation)

Install this Pax8 PHP library with Composer:

```
composer require 'mvdgeijn/pax8'
```

Alias
-----

[](#alias)

In the config\\app.php file add the following line to the 'aliases' array

```
'Pax8' => Mvdgeijn\Pax8\Facades\Pax8::class,
```

.env
----

[](#env)

You can get your developer credentials from the Pax8 panel:

Add the credentials to your project .env file. These credentials are used to get an access token. This access token is valid for 24h, so it's recommended to store it and renew it within 24h. Check also the Events section below.

PAX8\_CLIENT\_ID="your client id"

PAX8\_CLIENT\_SECRET="your client secret"

The requested access token is stored in and requested from the default cache.

Usage
-----

[](#usage)

```
$companies = Pax8::companyRequest();

$list = $companies->list();

$company = $companies->get( $list[0]->getId() );

$contacts = Pax8::contactRequest();

$list = $contacts->list( $company->getId() );

$contact = $contacts->get( $company->getId(), $list[0]->getId() );
```

Events
------

[](#events)

This package fires one event: Mvdgeijn/Pax8/Pax8AccessTokenCreatedEvent. This event can be used to store the newly created AccessToken somewhere.

```
namespace App\Listeners;

use Mvdgeijn\Pax8\Events\Pax8AccessTokenCreatedEvent;

class Pax8AccessTokenCreatedListener
{
    public function handle(Pax8AccessTokenCreatedEvent $event)
    {
        //
        // The new accessToken object can be access using $event->accessToken
        //
        // Store $event->accessToken->accessToken and $event->accessToken->expiryTimestamp
        // for later usage
        //
    }
}
```

Need to knows
-------------

[](#need-to-knows)

During the development of this package I ran into some pitfalls. Here a tip to hopefully save you some time.

- When creating an order request, you have to add one lineItem to the array of lineItems for each product you order. For each lineItem there is a required provisioning details array. Each product has it's own provisioning details, which you can get using the productRequest()-&gt;getProvisioningDetails() request.

Supported resources
-------------------

[](#supported-resources)

ComponentFetch allFetch singleCreateUpdatedeleteAccessToken✅⛔⛔⛔⛔Companies✅✅✅⛔⛔Contacts✅✅✅✅🔲Products✅✅⛔⛔⛔Orders✅✅✅⛔⛔Subscriptions✅✅⛔🔲🔲Invoices✅✅⛔⛔⛔Usage🔲🔲⛔⛔⛔Links
-----

[](#links)

- [Pax8 API documentation](https://docs.pax8.com/api/v1)

Authors
-------

[](#authors)

- [bHosted](https://www.bhosted.nl/)
- [mvdgeijn](https://www.vdgeijn.com/)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 98.2% 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 ~33 days

Recently: every ~73 days

Total

24

Last Release

805d ago

Major Versions

v1.6.2 → v2.0.02022-02-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/2284dddd824502d695c7a0a091ed1934c7f139c82784367df09c9751dec28a2d?d=identicon)[mvdgeijn](/maintainers/mvdgeijn)

---

Top Contributors

[![mvdgeijn](https://avatars.githubusercontent.com/u/50988060?v=4)](https://github.com/mvdgeijn "mvdgeijn (54 commits)")[![danpulse8](https://avatars.githubusercontent.com/u/85506261?v=4)](https://github.com/danpulse8 "danpulse8 (1 commits)")

---

Tags

apilaravel-packagepax8phpapipax8

### Embed Badge

![Health badge](/badges/mvdgeijn-pax8/health.svg)

```
[![Health](https://phpackages.com/badges/mvdgeijn-pax8/health.svg)](https://phpackages.com/packages/mvdgeijn-pax8)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

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