PHPackages                             spiritlabs-api/php-sdk - 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. spiritlabs-api/php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

spiritlabs-api/php-sdk
======================

spirit labs payment system SDK

06PHP

Since May 19Pushed 12y ago1 watchersCompare

[ Source](https://github.com/spiritlabs/php-sdk)[ Packagist](https://packagist.org/packages/spiritlabs-api/php-sdk)[ RSS](/packages/spiritlabs-api-php-sdk/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-sdk
=======

[](#php-sdk)

spirit labs API PHP SDK

This is the implementation for the spirit labs payment aggregation gateway.

BE CAREFUL: THIS SDK IS CURRENTLY UNDER DEVELOPMENT AND NOT STABLE. IF YOU FIND BUGS PLEASE PATCH VIA PULL REQUEST!

This package is compliant with [PSR-0](http://www.php-fig.org/psr/0/), [PSR-1](http://www.php-fig.org/psr/1/), and [PSR-2](http://www.php-fig.org/psr/2/). If you notice compliance oversights, please send a patch via pull request.

Usage
-----

[](#usage)

This SDK is available via composer (), just add "spiritlabs-api/php-sdk": "dev-master" to your composer.json require list.

For usage details see also examples/ folder.

### Get available payment methods

[](#get-available-payment-methods)

```
$API = new \SpiritLabs\API\Client(new \SpiritLabs\API\Authentication_HTTPBasicAccessAuth(
	$ApiKey,
	$SecretKey
));
$PaymentCustomer = new \SpiritLabs\API\Payment_Customer(array('UserId' => $UserId));
$PaymentCustomer->firstname = $firstname;
$PaymentCustomer->lastname = $lastname;

$PaymentMethods = $API->getPaymentMethods(
	array(
		new \SpiritLabs\API\Payment_Price($price, $currency)
	),
	$PaymentCustomer,
	true
);

print_r($PaymentMethods);
```

Todo
----

[](#todo)

- Add all API methods from
- Add and improve documentation (source code and usage documentation)

License
-------

[](#license)

This library is released under [MIT](http://www.tldrlegal.com/license/mit-license) license.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/spiritlabs-api-php-sdk/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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