PHPackages                             subscribepro/subscribepro-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. subscribepro/subscribepro-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

subscribepro/subscribepro-php
=============================

Subscribe Pro PHP SDK

1.1.6(2y ago)3181.3k—9.1%14[1 PRs](https://github.com/subscribepro/subscribepro-php/pulls)1MITPHPPHP &gt;=7.1

Since Jul 16Pushed 2y ago3 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (38)Used By (1)

Subscribe Pro PHP Client
========================

[](#subscribe-pro-php-client)

[![Latest Stable Version](https://camo.githubusercontent.com/837958c6ea107e8bd268757646b004e2a230040c6c30f1903a6161ccdc56876a/68747470733a2f2f706f7365722e707567782e6f72672f73756273637269626570726f2f73756273637269626570726f2d7068702f762f737461626c65)](https://packagist.org/packages/subscribepro/subscribepro-php)[![Total Downloads](https://camo.githubusercontent.com/fd17c0c659384df73034ab1c8d1f5aae90c981f0edeb3cefcd786d4f42e95d6c/68747470733a2f2f706f7365722e707567782e6f72672f73756273637269626570726f2f73756273637269626570726f2d7068702f646f776e6c6f616473)](https://packagist.org/packages/subscribepro/subscribepro-php)[![Latest Unstable Version](https://camo.githubusercontent.com/e41b5bfb01b581d29055449836e790b931da2785a95f67a257cfb20d879e62c8/68747470733a2f2f706f7365722e707567782e6f72672f73756273637269626570726f2f73756273637269626570726f2d7068702f762f756e737461626c65)](https://packagist.org/packages/subscribepro/subscribepro-php)[![License](https://camo.githubusercontent.com/4c722986b12db6a7500c836f4acb71d687bad36f00dd9eac8f4887aa0c37e407/68747470733a2f2f706f7365722e707567782e6f72672f73756273637269626570726f2f73756273637269626570726f2d7068702f6c6963656e7365)](https://packagist.org/packages/subscribepro/subscribepro-php)

This is our PHP client library for accessing the Subscribe Pro REST API. Our API documentation is available at .

To learn more about Subscribe Pro you can visit us at .

Composer
--------

[](#composer)

You can install our PHP client via [Composer](http://getcomposer.org/). Run the following command:

```
composer require subscribepro/subscribepro-php
```

To use the PHP client, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

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

Clean up code style
-------------------

[](#clean-up-code-style)

With `php-cs-fixer` v3.x installed, run this in project folder:

```
php-cs-fixer fix
```

Running the tests
-----------------

[](#running-the-tests)

With dev dependencies installed via composer (these will install phpunit &gt;= 9.5), run this:

```
vendor/bin/phpunit
```

Getting Started
---------------

[](#getting-started)

Simple usage looks like (example fetching a list of products):

```
