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

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

securionpay/securionpay-php
===========================

SecurionPay PHP Library

v2.6.0(3y ago)13227.7k↓59.9%11[6 issues](https://github.com/securionpay/securionpay-php/issues)1MITPHPPHP &gt;=5.4.0

Since May 28Pushed 2y ago2 watchersCompare

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

READMEChangelog (8)DependenciesVersions (9)Used By (1)

Deprecation
===========

[](#deprecation)

This library is deprecated. Please use [Shift4 PHP Library](https://github.com/shift4developer/shift4-php).

SecurionPay PHP Library
=======================

[](#securionpay-php-library)

If you don't already have SecurionPay account you can create it [here](https://securionpay.com/signup).

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

[](#installation)

### Composer

[](#composer)

Best way to use this library is via [Composer](http://getcomposer.org/).

To do this you will need to add this configuration to your `composer.json`:

```
{
  "require": {
    "securionpay/securionpay-php": "^2.5.0"
  }
}
```

Then to use the library, you can use Composer's autoloader:

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

### Manual installation

[](#manual-installation)

If you don't want to use Composer then you can download [the latest release](https://github.com/securionpay/securionpay-php/releases).

Then to use the library, you can either configure your autoloader to load classes from the `lib/` directory or use included autoloader:

```
 require_once 'lib/SecurionPay/Util/SecurionPayAutoloader.php';
 \SecurionPay\Util\SecurionPayAutoloader::register();
```

Quick start example
-------------------

[](#quick-start-example)

```
use SecurionPay\SecurionPayGateway;
use SecurionPay\Exception\SecurionPayException;

$gateway = new SecurionPayGateway('sk_test_[YOUR_SECRET_KEY]');

$request = array(
    'amount' => 499,
    'currency' => 'EUR',
    'card' => array(
        'number' => '4242424242424242',
        'expMonth' => 11,
        'expYear' => 2022
    )
);

try {
    $charge = $gateway->createCharge($request);

    // do something with charge object - see https://securionpay.com/docs/api#charge-object
    $chargeId = $charge->getId();

} catch (SecurionPayException $e) {
    // handle error response - see https://securionpay.com/docs/api#error-object
    $errorType = $e->getType();
    $errorCode = $e->getCode();
    $errorMessage = $e->getMessage();
}
```

Documentation
-------------

[](#documentation)

For further information, please refer to our official documentation at .

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~387 days

Recently: every ~84 days

Total

8

Last Release

1320d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8527a2022425fd252b67684bfe807f2f021fbc89e42508dc5848e9f21246e699?d=identicon)[SecurionPay-Team](/maintainers/SecurionPay-Team)

---

Top Contributors

[![alekquantox](https://avatars.githubusercontent.com/u/46532284?v=4)](https://github.com/alekquantox "alekquantox (2 commits)")[![hschapitz](https://avatars.githubusercontent.com/u/13313361?v=4)](https://github.com/hschapitz "hschapitz (2 commits)")[![el-dot](https://avatars.githubusercontent.com/u/7493083?v=4)](https://github.com/el-dot "el-dot (1 commits)")[![Shift4-Team](https://avatars.githubusercontent.com/u/12641508?v=4)](https://github.com/Shift4-Team "Shift4-Team (1 commits)")[![yoloSwagSEO](https://avatars.githubusercontent.com/u/25053451?v=4)](https://github.com/yoloSwagSEO "yoloSwagSEO (1 commits)")

### Embed Badge

![Health badge](/badges/securionpay-securionpay-php/health.svg)

```
[![Health](https://phpackages.com/badges/securionpay-securionpay-php/health.svg)](https://phpackages.com/packages/securionpay-securionpay-php)
```

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)[yenepay/php-sdk

YenePay SDK for PHP

112.7k](/packages/yenepay-php-sdk)

PHPackages © 2026

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