PHPackages                             deegitalbe/chargebee-php - 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. deegitalbe/chargebee-php

ActiveLibrary[Payment Processing](/categories/payments)

deegitalbe/chargebee-php
========================

ChargeBee API client implementation for PHP

v3.1.0(4y ago)04471MITPHPPHP &gt;=5.6.0

Since Jul 10Pushed 4y agoCompare

[ Source](https://github.com/deegitalbe/chargebee-php)[ Packagist](https://packagist.org/packages/deegitalbe/chargebee-php)[ Docs](https://github.com/chargebee/chargebee-php)[ RSS](/packages/deegitalbe-chargebee-php/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (2)Versions (142)Used By (1)

This a fork using Guzzle 7.

Chargebee PHP Client Library - API V2
=====================================

[](#chargebee-php-client-library---api-v2)

[![Packagist](https://camo.githubusercontent.com/032789374caf472e6b1f6b9fd44a0e3952d5baf645dea21d41f0873eeb3051d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368617267656265652f6368617267656265652d7068702e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/chargebee/chargebee-php)[![Packagist](https://camo.githubusercontent.com/35ca4df2937c53729442e1190a6c75ea1fe905658fe6188332c3ca2b8b245e42/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368617267656265652f6368617267656265652d7068702e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/chargebee/chargebee-php/stats)[![Packagist](https://camo.githubusercontent.com/232f8e44dc27a9cbaa0a64f7ceb1333bcd23cea49906a66b25330fe48fa3d866/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6368617267656265652f6368617267656265652d7068702e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/chargebee/chargebee-php/stats)[![Packagist](https://camo.githubusercontent.com/7d83dffe7c3ad3ac8e99c796ee311f5c1c368430cbbd1cdb640c7c5ea25a1519/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6368617267656265652f6368617267656265652d7068702e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/chargebee/chargebee-php)

This is the PHP Library for integrating with Chargebee. Sign up for a Chargebee account [here](https://www.chargebee.com).

Chargebee now supports two API versions - [V1](https://apidocs.chargebee.com/docs/api/v1) and [V2](https://apidocs.chargebee.com/docs/api), of which V2 is the latest release and all future developments will happen in V2. This library is for **API version V2**. If you’re looking for V1, head to [chargebee-v1 branch](https://github.com/chargebee/chargebee-php/tree/chargebee-v1).

Requirements
------------

[](#requirements)

PHP 5.6.0 or later

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

[](#installation)

### Composer

[](#composer)

`Chargebee` is available on [Packagist](https://packagist.org/packages/chargebee/chargebee-php) and can be installed using [Composer](https://getcomposer.org/)

```
composer require deegitalbe/chargebee-php
```

To use the bindings,

```
require_once('vendor/autoload.php');
```

### Manual Installation

[](#manual-installation)

Download the [latest release](https://github.com/chargebee/chargebee-php/releases) and to use the bindings, include `init.php` file.

```
require_once('/path/to/chargebee-php/lib/init.php');
```

Documentation
-------------

[](#documentation)

- [API Reference](https://apidocs.chargebee.com/docs/api?lang=php)

Usage
-----

[](#usage)

To create a new subscription:

```

use ChargeBee\ChargeBee\Environment;
use ChargeBee\ChargeBee\Subscription;

...

Environment::configure("your_site", "{your_site_api_key}");
$result = Subscription::create(array(
  "id" => "__dev__KyVqH3NW3f42fD",
  "planId" => "starter",
  "customer" => array(
    "email" => "john@user.com",
    "firstName" => "John",
    "lastName" => "Wayne"
  )
));
$subscription = $result->subscription();
$customer = $result->customer();
$card = $result->card();

```

Legacy Support
--------------

[](#legacy-support)

If you are using PHP &lt; 5.6.0 , you can download chargebee-php [v2.8.3](https://github.com/chargebee/chargebee-php/tree/v2.8.3). This version will not support recently added features since the version was released. We recommend you to upgrade PHP inorder to use the latest features.

License
-------

[](#license)

See the LICENSE file.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity76

Established project with proven stability

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

Recently: every ~60 days

Total

137

Last Release

1702d ago

Major Versions

v1.7.2 → v2.0.02016-04-11

v1.7.3 → v2.6.62019-08-07

v1.7.4 → v2.6.72019-08-14

v1.7.5 → v2.6.82019-08-27

v2.8.3 → v3.0.02021-08-16

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24230736?v=4)[Mathieu Henrotay](/maintainers/henrotaym)[@henrotaym](https://github.com/henrotaym)

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

---

Top Contributors

[![rraman](https://avatars.githubusercontent.com/u/535773?v=4)](https://github.com/rraman "rraman (92 commits)")[![SangeethaBaskaran](https://avatars.githubusercontent.com/u/10059229?v=4)](https://github.com/SangeethaBaskaran "SangeethaBaskaran (87 commits)")[![cb-vaibhav](https://avatars.githubusercontent.com/u/1768604?v=4)](https://github.com/cb-vaibhav "cb-vaibhav (26 commits)")[![cb-thiyagu](https://avatars.githubusercontent.com/u/539363?v=4)](https://github.com/cb-thiyagu "cb-thiyagu (22 commits)")[![cb-goutham](https://avatars.githubusercontent.com/u/35914593?v=4)](https://github.com/cb-goutham "cb-goutham (12 commits)")[![hellokps](https://avatars.githubusercontent.com/u/872557?v=4)](https://github.com/hellokps "hellokps (10 commits)")[![saravana-cb](https://avatars.githubusercontent.com/u/3005472?v=4)](https://github.com/saravana-cb "saravana-cb (9 commits)")[![cb-navaneedhan](https://avatars.githubusercontent.com/u/64066477?v=4)](https://github.com/cb-navaneedhan "cb-navaneedhan (7 commits)")[![cb-gaurav](https://avatars.githubusercontent.com/u/55385089?v=4)](https://github.com/cb-gaurav "cb-gaurav (4 commits)")[![geoffreytran](https://avatars.githubusercontent.com/u/544500?v=4)](https://github.com/geoffreytran "geoffreytran (3 commits)")

---

Tags

paymentschargebeesubscription billingrecurring billing

### Embed Badge

![Health badge](/badges/deegitalbe-chargebee-php/health.svg)

```
[![Health](https://phpackages.com/badges/deegitalbe-chargebee-php/health.svg)](https://phpackages.com/packages/deegitalbe-chargebee-php)
```

###  Alternatives

[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[unicodeveloper/laravel-paystack

A Laravel Package for Paystack

650975.6k11](/packages/unicodeveloper-laravel-paystack)[mnastalski/przelewy24-php

Przelewy24 PHP library

52101.2k2](/packages/mnastalski-przelewy24-php)[invoiced/invoiced

Invoiced PHP Library

14117.1k](/packages/invoiced-invoiced)[prevailexcel/laravel-nowpayments

A Laravel Package for NOWPayments

1414.2k](/packages/prevailexcel-laravel-nowpayments)[itsmurumba/laravel-mpesa

Laravel Package for Mpesa Daraja API

191.6k](/packages/itsmurumba-laravel-mpesa)

PHPackages © 2026

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