PHPackages                             poool/subscribe-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. [API Development](/categories/api)
4. /
5. poool/subscribe-sdk

ActiveLibrary[API Development](/categories/api)

poool/subscribe-sdk
===================

Poool Subscribe SDK for PHP 🚀

2.0.1(2y ago)0795[7 PRs](https://github.com/p3ol/subscribe-php-sdk/pulls)MITPHPPHP &gt;=8.1.0

Since Aug 4Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/p3ol/subscribe-php-sdk)[ Packagist](https://packagist.org/packages/poool/subscribe-sdk)[ Docs](https://github.com/p3ol/subscribe-php-sdk)[ RSS](/packages/poool-subscribe-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (12)Used By (0)

Poool Subscribe - PHP SDK
=========================

[](#poool-subscribe---php-sdk)

Poool Subscribe SDK for PHP 🚀

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

[](#installation)

```
composer require poool/subscribe-sdk

```

Usage
-----

[](#usage)

```
use Poool\Subscribe\SDK\Client;

$client = new Client([
    'clientId' => 'yourClientId',
    'clientSecret' => 'yourClientSecret',
]);
var_dump($client->offers->list());
```

[Documentation](https://poool.dev/docs/subscribe/server)
--------------------------------------------------------

[](#documentation)

Sandbox mode
------------

[](#sandbox-mode)

You can use the sandbox mode to test your integration without any real payment. Pass the `sandbox: true` request option (last parameter) to any method of the SDK to use it:

```
$client->offers->list(1, 10, [], [], 'active', ['sandbox' => true]);
```

Migrations
----------

[](#migrations)

v1 to v2
--------

[](#v1-to-v2)

- Now requires php &gt;= 8.1
- `customers.switchSubscriptionOffer(customerId, subscriptionId, offer, requestOptions)` becomes `customers.switchSubscriptionOffer(customerId, subscriptionId, offer, **{ priceId }**, requestOptions)` -&gt; it now takes an additional parameter before request options to speficy offer options like price id
- `sandbox: true|false` is now an option on every request (instead of only offers list) and has been removed from `offers.list()`
- `offers.list(page, count, status, include, exclude)` becomes `offers.list(page, count, include, exclude, **status**, requestOptions)` -&gt; it is moved to the end of the parameters list to be consistent with other SDKs.

Contributing
------------

[](#contributing)

[![](https://camo.githubusercontent.com/8cded03d87a83d9bee8dc43580ca794e6a686378e8a7269f3bab2fdef09b3a2c/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d70336f6c2f7375627363726962652d7068702d73646b)](https://github.com/p3ol/subscribe-php-sdk/graphs/contributors)

Please check the [CONTRIBUTING.md](https://github.com/p3ol/subscribe-php-sdk/blob/main/CONTRIBUTING.md) doc for contribution guidelines.

Development
-----------

[](#development)

Install dependencies:

```
composer install
```

Run examples at  with php built-in server:

```
composer serve
```

And test your code:

```
composer test
```

License
-------

[](#license)

This software is licensed under [MIT](https://github.com/p3ol/subscribe-php-sdk/blob/main/LICENSE).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance61

Regular maintenance activity

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 61.7% 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 ~219 days

Total

3

Last Release

935d ago

Major Versions

1.0.0 → 2.0.02023-08-24

PHP version history (2 changes)1.0.0PHP &gt;=8.0.0

2.0.0PHP &gt;=8.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/49098d0bbf9dcae5b79496f34a51521dbe082490f627ebf428b3abdcae4a17ed?d=identicon)[ugo.poool](/maintainers/ugo.poool)

---

Top Contributors

[![dackmin](https://avatars.githubusercontent.com/u/1873323?v=4)](https://github.com/dackmin "dackmin (37 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (7 commits)")[![emileNetter](https://avatars.githubusercontent.com/u/16649348?v=4)](https://github.com/emileNetter "emileNetter (5 commits)")[![maximedasilva](https://avatars.githubusercontent.com/u/10706836?v=4)](https://github.com/maximedasilva "maximedasilva (5 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (5 commits)")[![yannispgs](https://avatars.githubusercontent.com/u/67374171?v=4)](https://github.com/yannispgs "yannispgs (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/poool-subscribe-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/poool-subscribe-sdk/health.svg)](https://phpackages.com/packages/poool-subscribe-sdk)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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