PHPackages                             dominicwatts/sagepay-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. dominicwatts/sagepay-sdk-php

ActiveProject[Payment Processing](/categories/payments)

dominicwatts/sagepay-sdk-php
============================

Sagepay wrapper and mordernization for SDK that supports server, form and direct payments

1.0.5(5y ago)01.5k1PHPPHP &gt;=5.6.4CI failing

Since Aug 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/DominicWatts/sagepay-sdk-php)[ Packagist](https://packagist.org/packages/dominicwatts/sagepay-sdk-php)[ RSS](/packages/dominicwatts-sagepay-sdk-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (8)Used By (0)

sagepay-sdk-php
===============

[](#sagepay-sdk-php)

[![phpcs](https://github.com/DominicWatts/sagepay-sdk-php/workflows/phpcs/badge.svg)](https://github.com/DominicWatts/sagepay-sdk-php/workflows/phpcs/badge.svg)

[![PHPCompatibility](https://github.com/DominicWatts/sagepay-sdk-php/workflows/PHPCompatibility/badge.svg)](https://github.com/DominicWatts/sagepay-sdk-php/workflows/PHPCompatibility/badge.svg)

[![PHPStan](https://github.com/DominicWatts/sagepay-sdk-php/workflows/PHPStan/badge.svg)](https://github.com/DominicWatts/sagepay-sdk-php/workflows/PHPStan/badge.svg)

[![Coverage Status](https://camo.githubusercontent.com/80982abf6018098b280f3c37cad03c4a76ab994dd164cac29f260ba438579e86/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f446f6d696e696357617474732f736167657061792d73646b2d7068702f62616467652e737667)](https://coveralls.io/github/DominicWatts/sagepay-sdk-php)

[![PHPUnit](https://github.com/DominicWatts/sagepay-sdk-php/workflows/PHPUnit/badge.svg)](https://github.com/DominicWatts/sagepay-sdk-php/workflows/PHPUnit/badge.svg)

[Coveralls Status](https://coveralls.io/github/DominicWatts/sagepay-sdk-php)

Sage Pay PHP SDK for server, frame and direct integrations based on the official Sage Pay SDK. This is a composer compatible Sage Pay V3 PHP SDK. This is not an official Sage Pay package.

Install Instructions
--------------------

[](#install-instructions)

`composer require dominicwatts/sagepay-sdk-php`

There is a composer archive at:

```
https://packagist.org/packages/dominicwatts/sagepay-sdk-php

```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

use Xigen\Library\Sagepay\Payment;
use Xigen\Library\Sagepay\Classes\SagepayCustomer;
use Xigen\Library\Sagepay\Classes\SagepayCustomerDetails;

$config = [
    'vendorName' => 'testing'
];

$payment = new Payment(
    Payment::FORM,
    $config
);

$customer = new SagepayCustomer();
$customerDetails = new SagepayCustomerDetails();
$customerDetails->__set('firstname', 'Dave');
$customerDetails->setLastname('Smith');

$api = $payment->getApi();

$api->setCustomer($customer);
$api->setCustomerDetails($customerDetails);

var_dump($api);

$api->createRequest();

```

Update
------

[](#update)

Check `./tests` for more comprehensive usage

Copyright
---------

[](#copyright)

The original SDK belongs to SagePay and is their intellectual property. No license information is available but this is based on their publicly accessible source code.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

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

Recently: every ~55 days

Total

6

Last Release

1927d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44d79495721d844614b7004c5811ff2ab7cf15c9be3544000f7ee89f3e187de3?d=identicon)[DominicPixie](/maintainers/DominicPixie)

---

Top Contributors

[![DominicWatts](https://avatars.githubusercontent.com/u/7295705?v=4)](https://github.com/DominicWatts "DominicWatts (20 commits)")[![XigenDominic](https://avatars.githubusercontent.com/u/6814203?v=4)](https://github.com/XigenDominic "XigenDominic (4 commits)")

---

Tags

phpsdkgatewaysagepay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dominicwatts-sagepay-sdk-php/health.svg)

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

###  Alternatives

[lokielse/omnipay-wechatpay

Wechat gateway for Omnipay payment processing library

314225.4k7](/packages/lokielse-omnipay-wechatpay)

PHPackages © 2026

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