PHPackages                             colinbm/sagepayadminapi-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. [API Development](/categories/api)
4. /
5. colinbm/sagepayadminapi-php

ActiveScript[API Development](/categories/api)

colinbm/sagepayadminapi-php
===========================

0.0.1(10y ago)777.6k3OSL-3.0PHP

Since Feb 27Pushed 10y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

SagePay Admin API
=================

[](#sagepay-admin-api)

Provides an easy way to access the Admin API. You can use any command specified in the [Reporting and Admin API documentation](https://www.sagepay.com/sites/default/files/pdf/brochures/ReportingAndAdminAPIProtocol_1_02_0.pdf)as a method. Pass an array of elements to send, as detailed in the document.

Examples
--------

[](#examples)

Get a single transaction

```
$adminapi = new SagePayAdminApi('vendor', 'username', 'password');
$transaction = $adminapi->getTransactionDetail(array('vendortxcode' => '12345678'));
echo "Third Man Status: {$transaction->t3maction} ({$transaction->t3mscore})\n";
```

Get Visa and MasterCard refunds from March 2014

```
$adminapi = new SagePayAdminApi('vendor', 'username', 'password');

// SagePay will only return 50 rows at a time so loop until we have them all.
do {
	$list = $adminapi->getTransactionList(array(
		'startdate'      => '01/03/2014 00:00:00',
		'enddate'        => '01/04/2014 00:00:00',
		'startrow'       => $end_row + 1,
		'txtypes'        => array(
			'txtype' => 'REFUND',
		),
		'paymentsystems' => array(
			'paymentsystem' => array(
				'MC',
				'Visa',
			)
		),
	) );

	// Check response is OK
	if ( '0000' != $list->errorcode ) {
		die( $list->errorcode . ' : ' . $list->error );
	}
	$total_rows = (int) $list->transactions->totalrows;
	$end_row = (int) $list->transactions->endrow;

	foreach ( $list->transactions->transaction as $transaction ) {
		var_dump( $transaction );
	}
} while ( $end_row < $total_rows );
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

3771d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f55f0a2584b09fa5f6afd268ea78cc34549db6ec27ef16deadf4c58000c5c093?d=identicon)[colinbm](/maintainers/colinbm)

---

Top Contributors

[![colinbm](https://avatars.githubusercontent.com/u/825374?v=4)](https://github.com/colinbm "colinbm (8 commits)")[![mikemanger](https://avatars.githubusercontent.com/u/74821?v=4)](https://github.com/mikemanger "mikemanger (5 commits)")[![nfourtythree](https://avatars.githubusercontent.com/u/266453?v=4)](https://github.com/nfourtythree "nfourtythree (2 commits)")[![mustdobetter](https://avatars.githubusercontent.com/u/1746353?v=4)](https://github.com/mustdobetter "mustdobetter (1 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)[pixelant/pxa-social-feed

Add Facebook, Instagram, and Twitter feeds to your site.

2349.3k](/packages/pixelant-pxa-social-feed)

PHPackages © 2026

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