PHPackages                             maxio/advanced-billing-sdk - 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. [Payment Processing](/categories/payments)
4. /
5. maxio/advanced-billing-sdk

ActiveLibrary[Payment Processing](/categories/payments)

maxio/advanced-billing-sdk
==========================

Ultimate billing and pricing flexibility for B2B SaaS. Maxio integrates directly into your product, so you can seamlessly manage your product catalog, bill customers, and collect payments.

9.0.0(2mo ago)427.9k↓18.6%1[2 issues](https://github.com/maxio-com/ab-php-sdk/issues)MITPHPPHP ^7.2 || ^8.0CI passing

Since Jan 19Pushed 2mo ago6 watchersCompare

[ Source](https://github.com/maxio-com/ab-php-sdk)[ Packagist](https://packagist.org/packages/maxio/advanced-billing-sdk)[ Docs](https://www.maxio.com/product/advanced-billing)[ RSS](/packages/maxio-advanced-billing-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (19)Used By (0)

Getting Started with Maxio Advanced Billing
===========================================

[](#getting-started-with-maxio-advanced-billing)

Introduction
------------

[](#introduction)

Maxio Advanced Billing (formerly Chargify) provides an HTTP-based API that conforms to the principles of REST. One of the many reasons to use Advanced Billing is the immense feature set and client libraries. The Maxio API returns JSON responses as the primary and recommended format, but XML is also provided as a backwards compatible option for merchants who require it.

### Steps to make your first Maxio Advanced Billing API call

[](#steps-to-make-your-first-maxio-advanced-billing-api-call)

1. [Sign-up](https://app.chargify.com/signup/maxio-billing-sandbox) or [log-in](https://app.chargify.com/login.html) to your [test site](https://maxio.zendesk.com/hc/en-us/articles/24250712113165-Testing-Overview) account.
2. [Setup authentication](https://maxio.zendesk.com/hc/en-us/articles/24294819360525-API-Keys) credentials.
3. Submit an API request and verify the response.
4. Test the Advanced Billing [integrations](https://www.maxio.com/integrations).

Next, you can explore authentication methods, basic concepts for interacting with Advanced Billing via the API, and the entire set of [application-based documentation](https://docs.maxio.com/hc/en-us) to aid in your discovery of the product.

#### Request Example

[](#request-example)

The following example uses the curl command-line tool to make an API request.

**Request**

curl -u &lt;api\_key&gt;:x -H Accept:application/json -H Content-Type:application/json

Install the Package
-------------------

[](#install-the-package)

Run the following command to install the package and automatically add the dependency to your composer.json file:

```
composer require "maxio/advanced-billing-sdk:9.0.0"
```

Or add it to the composer.json file manually as given below:

```
"require": {
    "maxio/advanced-billing-sdk": "9.0.0"
}
```

You can also view the package at:

Initialize the API Client
-------------------------

[](#initialize-the-api-client)

***Note:*** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/client.md)

The following parameters are configurable for the API Client:

ParameterTypeDescriptionsite`string`The subdomain for your Advanced Billing site.
*Default*: `'subdomain'`environment[`Environment`](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/README.md#environments)The API environment.
 **Default: `Environment.US`**timeout`int`Timeout for API calls in seconds.
*Default*: `120`enableRetries`bool`Whether to enable retries and backoff feature.
*Default*: `false`numberOfRetries`int`The number of retries to make.
*Default*: `0`retryInterval`float`The retry time interval between the endpoint calls.
*Default*: `1`backOffFactor`float`Exponential backoff factor to increase interval between retries.
*Default*: `2`maximumRetryWaitTime`int`The maximum wait time in seconds for overall retrying requests.
*Default*: `0`retryOnTimeout`bool`Whether to retry on request timeout.
*Default*: `true`httpStatusCodesToRetry`array`Http status codes to retry against.
*Default*: `408, 413, 429, 500, 502, 503, 504, 521, 522, 524`httpMethodsToRetry`array`Http methods to retry against.
*Default*: `'GET', 'PUT'`proxyConfiguration[`ProxyConfigurationBuilder`](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/proxy-configuration-builder.md)Represents the proxy configurations for API callsbasicAuthCredentials[`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/auth/basic-authentication.md)The Credentials Setter for Basic AuthenticationThe API client can be initialized as follows:

```
use AdvancedBillingLib\Environment;
use AdvancedBillingLib\Authentication\BasicAuthCredentialsBuilder;
use AdvancedBillingLib\AdvancedBillingClientBuilder;

$client = AdvancedBillingClientBuilder::init()
    ->basicAuthCredentials(
        BasicAuthCredentialsBuilder::init(
            'BasicAuthUserName',
            'BasicAuthPassword'
        )
    )
    ->environment(Environment::US)
    ->site('subdomain')
    ->build();
```

Environments
------------

[](#environments)

The SDK can be configured to use a different environment for making API calls. Available environments are:

### Fields

[](#fields)

NameDescriptionUS**Default** Default Advanced Billing environment hosted in US. Valid for the majority of our customers.EUAdvanced Billing environment hosted in EU. Use only when you requested EU hosting for your AB account.Authorization
-------------

[](#authorization)

This API uses the following authentication schemes.

- [`BasicAuth (Basic Authentication)`](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/auth/basic-authentication.md)

List of APIs
------------

[](#list-of-apis)

- [API Exports](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/api-exports.md)
- [Advance Invoice](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/advance-invoice.md)
- [Billing Portal](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/billing-portal.md)
- [Component Price Points](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/component-price-points.md)
- [Custom Fields](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/custom-fields.md)
- [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/events-based-billing-segments.md)
- [Payment Profiles](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/payment-profiles.md)
- [Product Families](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/product-families.md)
- [Product Price Points](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/product-price-points.md)
- [Proforma Invoices](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/proforma-invoices.md)
- [Reason Codes](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/reason-codes.md)
- [Referral Codes](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/referral-codes.md)
- [Sales Commissions](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/sales-commissions.md)
- [Subscription Components](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/subscription-components.md)
- [Subscription Groups](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/subscription-groups.md)
- [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/subscription-group-invoice-account.md)
- [Subscription Group Status](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/subscription-group-status.md)
- [Subscription Invoice Account](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/subscription-invoice-account.md)
- [Subscription Notes](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/subscription-notes.md)
- [Subscription Products](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/subscription-products.md)
- [Subscription Renewals](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/subscription-renewals.md)
- [Subscription Status](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/subscription-status.md)
- [Coupons](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/coupons.md)
- [Components](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/components.md)
- [Customers](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/customers.md)
- [Events](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/events.md)
- [Insights](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/insights.md)
- [Invoices](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/invoices.md)
- [Offers](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/offers.md)
- [Products](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/products.md)
- [Sites](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/sites.md)
- [Subscriptions](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/subscriptions.md)
- [Webhooks](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/controllers/webhooks.md)

SDK Infrastructure
------------------

[](#sdk-infrastructure)

### Configuration

[](#configuration)

- [ProxyConfigurationBuilder](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/proxy-configuration-builder.md)

### HTTP

[](#http)

- [HttpRequest](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/http-request.md)
- [HttpResponse](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/http-response.md)

### Utilities

[](#utilities)

- [ApiException](https://www.github.com/maxio-com/ab-php-sdk/tree/9.0.0/doc/api-exception.md)

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance76

Regular maintenance activity

Popularity33

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~49 days

Recently: every ~104 days

Total

17

Last Release

66d ago

Major Versions

4.0.0 → 5.0.02024-08-21

5.2.0 → 6.0.02024-12-13

6.1.0 → 7.0.02025-07-24

7.0.1 → 8.0.02025-12-09

8.0.0 → 9.0.02026-03-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/d08338f273a518fb10686f35a9c69e385145bc0d5b153844169c6d7d38a908c5?d=identicon)[MaxioSdk](/maintainers/MaxioSdk)

---

Top Contributors

[![maciej-nedza](https://avatars.githubusercontent.com/u/76946708?v=4)](https://github.com/maciej-nedza "maciej-nedza (34 commits)")[![SebastianMiklaszewskiBldr](https://avatars.githubusercontent.com/u/144230269?v=4)](https://github.com/SebastianMiklaszewskiBldr "SebastianMiklaszewskiBldr (26 commits)")[![maxio-sdk](https://avatars.githubusercontent.com/u/133001450?v=4)](https://github.com/maxio-sdk "maxio-sdk (12 commits)")[![patryk-grudzien-keen](https://avatars.githubusercontent.com/u/59444374?v=4)](https://github.com/patryk-grudzien-keen "patryk-grudzien-keen (6 commits)")[![lucassus](https://avatars.githubusercontent.com/u/41239?v=4)](https://github.com/lucassus "lucassus (5 commits)")[![michalpierog](https://avatars.githubusercontent.com/u/1119516?v=4)](https://github.com/michalpierog "michalpierog (5 commits)")

---

Tags

paymentssubscriptionMaxioAdvanced Billing

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/maxio-advanced-billing-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/maxio-advanced-billing-sdk/health.svg)](https://phpackages.com/packages/maxio-advanced-billing-sdk)
```

###  Alternatives

[unicodeveloper/laravel-paystack

A Laravel Package for Paystack

650975.6k11](/packages/unicodeveloper-laravel-paystack)[prevailexcel/laravel-nowpayments

A Laravel Package for NOWPayments

1414.2k](/packages/prevailexcel-laravel-nowpayments)

PHPackages © 2026

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