PHPackages                             rocketgate/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. rocketgate/sdk

ActiveLibrary[API Development](/categories/api)

rocketgate/sdk
==============

Client PHP

8.32(2mo ago)15200.1k↓59%20[3 issues](https://github.com/rocketgate/rocketgate-php-sdk/issues)[7 PRs](https://github.com/rocketgate/rocketgate-php-sdk/pulls)2MITPHPPHP &gt;=8.0CI failing

Since Aug 8Pushed 2mo ago6 watchersCompare

[ Source](https://github.com/rocketgate/rocketgate-php-sdk)[ Packagist](https://packagist.org/packages/rocketgate/sdk)[ RSS](/packages/rocketgate-sdk/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (4)Versions (25)Used By (2)

[![rocketgate-php-sdk](https://camo.githubusercontent.com/9ba4d2608083ac7d46e842a0bdd88975ba36f275cfa53b300973ed94702df637/687474703a2f2f726f636b6574676174652e636f6d2f696d616765732f6c6f676f5f726f636b6574676174652e706e67)](https://camo.githubusercontent.com/9ba4d2608083ac7d46e842a0bdd88975ba36f275cfa53b300973ed94702df637/687474703a2f2f726f636b6574676174652e636f6d2f696d616765732f6c6f676f5f726f636b6574676174652e706e67)

Rocketgate Gateway PHP SDK
==========================

[](#rocketgate-gateway-php-sdk)

This library is compatible with PHP 8.0 or greater (refer to PHP Supported Versions [here](https://www.php.net/supported-versions.php)).

This library supports Composer and Namespaces and thus is NOT backwards compatible with our old (legacy) PHP sdks:

Project structure
-----------------

[](#project-structure)

/examples - contains sample usages of the Gateway SDK for a variety of purchase scenarios to assist with your integration

/src - contains core implementation of the Gateway SDK

/tests - contains integration examples with Rocketgate Gateway that can be run with phpunit as an integration test suite

Installation using composer
---------------------------

[](#installation-using-composer)

Install with composer (available on packagist.org):

```
composer require --update-no-dev rocketgate/sdk
```

Installation without composer
-----------------------------

[](#installation-without-composer)

Create a vendor folder (or use your project's external dependencies folder):

```
mkdir -p vendor/rocketgate
```

Clone into that folder

```
git clone https://github.com/rocketgate/rocketgate-php-sdk.git vendor/rocketgate
```

Add classes to your project autoloader or manually (as shown below).

```
