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

ActiveLibrary[Payment Processing](/categories/payments)

payplug/payplug-php
===================

A simple PHP library for PayPlug public API.

4.0.0(11y ago)22723.4k↓56.7%7[5 issues](https://github.com/payplug/payplug-php/issues)[2 PRs](https://github.com/payplug/payplug-php/pulls)7MITPHPPHP &gt;=5.3.0CI failing

Since May 6Pushed 2w ago9 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (112)Used By (7)

PHP library for the Payplug API
-------------------------------

[](#php-library-for-the-payplug-api)

[![CI Status](https://camo.githubusercontent.com/b0a6b3318442bc98122b54d6a9a91e113a73ea1c41f6d7f1e00f9b15aa8d2f3b/68747470733a2f2f7472617669732d63692e6f72672f706179706c75672f706179706c75672d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/payplug/payplug-php)[![Packagist](https://camo.githubusercontent.com/8858e83a04ab6261e94d5f553d21d8a2c797caa375c33321f34e607613e657d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706179706c75672f706179706c75672d7068702e737667)](https://packagist.org/packages/payplug/payplug-php)This is the documentation of Payplug's PHP library. It is designed to help developers use Payplug as a payment solution in a simple, yet robust way.

You can create a Payplug account at .

### Maintenance

[](#maintenance)

CA certificate (cacert.pem) should be updated every year during the first week of December. Go to  to get a recent one.

### Prerequisites

[](#prerequisites)

Payplug's library relies on **cURL** to perform HTTP requests and requires **OpenSSL (1.0.1 or newer)** to secure transactions. You also need **PHP 5.3** or newer for the Payplug PHP V2.

For version **PHP 5.2** or older, you must refer to Payplug PHP V1.

### Documentation

[](#documentation)

Please see  for the latest documentation.

### Installation

[](#installation)

**Option 1 - Strongly preferred)** via composer:

- Get composer from the [composer website](https://getcomposer.org/download/).
- Make sure you have initialized your *composer.json*.
- Run *composer require payplug/payplug-php* from your project directory.

**Option 2-** clone the repository:

```
git clone https://github.com/payplug/payplug-php.git
```

**Option 3)** download as a tarball:

- Download the most recent tarball from the [download page V2](https://github.com/payplug/payplug-php/releases) (V2 for **PHP 5.3** or newer)
- Download the most recent tarball from the [download page V1](https://github.com/payplug/payplug-php/releases/tag/V1.1.2) (V1 for **PHP 5.2** or older)
- Unpack the tarball
- Put the files somewhere in your project

To get started, add the following to your PHP script (if you are not running a framework):

```
