Introducing the Better Auth Chargebee plugin: Use it to handle subscriptions, billing, and auth seamlessly.Try now
ChargebeechargebeeAPI

PHP SDK

The official Chargebee PHP SDK provides a convenient way to interact with the Chargebee API from your PHP applications.

Installation

Requirements

  • PHP 8.1 or later
  • Composer

Quick Start

Create a Resource

List & Pagination

Idempotent Requests

Pass an idempotency key as a header in the second argument:

Error Handling

Retry & Rate Limits

Retries are disabled by default. Enable with RetryConfig:

Rate-limited responses (HTTP 429) are automatically retried after the Retry-After duration.

Migration Guide

If upgrading from v3 to v4, see the migration guide.