PHPackages                             cmpayments/payments-sdk-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. cmpayments/payments-sdk-php

ActiveLibrary[Payment Processing](/categories/payments)

cmpayments/payments-sdk-php
===========================

SDK that makes it easy to connect to the CMPayments payment API

v1.2.0(4y ago)34.0k↓50%6[1 PRs](https://github.com/cmpayments/payments-sdk-php/pulls)MITPHPPHP &gt;=5.5.0CI failing

Since Nov 7Pushed 4y agoCompare

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

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

CMPayments Payment SDK for PHP
==============================

[](#cmpayments-payment-sdk-for-php)

[![Build Status](https://camo.githubusercontent.com/f593e80f3283f504540fe676ca885d7ccfa7dbe0b10608175d7cb7f8bf817200/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636d7061796d656e74732f7061796d656e74732d73646b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cmpayments/payments-sdk-php)[![Scrutinizer](https://camo.githubusercontent.com/a4a7019993db1c1be0978e8cdfcf22af0e3a73e110d7234f51f5f4fd1c20d9fc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636d7061796d656e74732f7061796d656e74732d73646b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cmpayments/payments-sdk-php/)[![Coverage](https://camo.githubusercontent.com/73e328d1513e81ee642b2730b1aed5f93c798bc26fc356aafb617a9cfeee46d2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f636d7061796d656e74732f7061796d656e74732d73646b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cmpayments/payments-sdk-php/)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/cmpayments/payments-sdk-php/blob/master/LICENSE)[![Total Downloads](https://camo.githubusercontent.com/6306c55a5d269a0a979a9feb49c751e3317c0ab1ab5fe978f3f63f7150b2cd2e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636d7061796d656e74732f7061796d656e74732d73646b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cmpayments/payments-sdk-php)

Integrating the CMPayments solutions for online payments with your application is easy using the Payment SDK for PHP.

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

[](#installation)

To install the SDK, simply use [Composer](https://getcomposer.org/): `composer require cmpayments/payments-sdk-php`

### Requirements

[](#requirements)

- PHP 5.5+
- PHP cURL extension
- Up to date SSL, capable of TLS 1.0 or higher

### Dependencies

[](#dependencies)

- [MoneyPHP](https://github.com/moneyphp) is used to encapsulate sums of money and their currency
- [Guzzle](https://github.com/guzzle/guzzle) is used to make HTTP requests

These are automatically installed by composer.

Bootstrapping
-------------

[](#bootstrapping)

To do anything with the SDK, the first step is to create an instance of the payment `Gateway`:

```
