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

ActiveProject[Payment Processing](/categories/payments)

ammaar23/sagepay-sdk-php
========================

The official Sage Pay PHP SDK for server and direct integrations.

v1.0.2(9y ago)0946PHPPHP &gt;=5.6.4

Since Mar 3Pushed 9y agoCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

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

[](#sagepay-sdk-php)

Sage Pay PHP SDK for server and direct integrations (based on the official Sage Pay SDK).

This repository takes the official Sage Pay V3 PHP SDK and turns it into a composer compatible include for use with modern frameworks. No code has been modified from the existing Sage Pay code so it allows you to build your own wrappers for your integration. This is not an official Sage Pay package.

Warning
-------

[](#warning)

I make no warranty whatsoever for use of this repository and the code within it. Please always check source code yourself especially when using third-party payment software. It is your responsibility to check for exploits, vulnerabilities in the source code if you are using it in any project. The code has not been modified by myself but this repository could potentially be compromised by a third-party, you should verify the code yourself if using it. The source code itself is mainly provided by Sage Pay themselves but I also make no warranty for their work. If you would like to use this repository in a commercial project it is recommended you download the official Sage Pay integration files from  and create your own wrappers using this repository as a guide.

Install Composer
----------------

[](#install-composer)

Run this in your terminal to get the latest Composer version:

`curl -sS https://getcomposer.org/installer | php`Or if you don't have curl: `php -r "readfile('https://getcomposer.org/installer');" | php`

This installer script will simply check some php.ini settings, warn you if they are set incorrectly, and then download the latest composer.phar in the current directory.

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

[](#installation)

To install this library to your project it is recommended to use composer.

Run:

`composer require ammaar23/sagepay-sdk-php`

There is a composer archive at:

Usage
-----

[](#usage)

The Official SagePay SDK does not currently use namespaces so to use the SDK you simply run commands such as: `$api = SagepayApiFactory::create(SAGEPAY_SERVER, $config);$api->setBasket($basket);`

There is a working demo if you download the official SagePay PHP SDK at:

Updates
-------

[](#updates)

I couldn't find any versioning info for the SagePay PHP SDK so please check yourself if you think this archive may be out of date or better yet you can make a request to update this repository yourself!

Copyright
---------

[](#copyright)

The SDK belongs to SagePay and is their intellectual property. No license information is available but this is a publicly accessible source code. I do not intend any copyright infringement and am simply creating a wrapper to aid developers (including myself) to use the SagePay SDK in their composer compatible projects.

Contact
-------

[](#contact)

If you need to contact me you can get in touch with me via my email: [ammaarlatif\_14@hotmail.co.uk](mailto:ammaarlatif_14@hotmail.co.uk)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3336d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/295ce6602ad05dc3db5c73b2104678eff7f3a73ea2ef90ab8db33aacc78421c3?d=identicon)[ammaar23](/maintainers/ammaar23)

---

Tags

phpsdkgatewaysagepay

### Embed Badge

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

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

###  Alternatives

[lokielse/omnipay-wechatpay

Wechat gateway for Omnipay payment processing library

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

PHPackages © 2026

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