PHPackages                             levelfiveteam/railsbank-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. levelfiveteam/railsbank-sdk

ActiveLibrary

levelfiveteam/railsbank-sdk
===========================

Railsbank PHP SDK

v1.4(6y ago)114.0kMITPHPPHP ^7.1CI failing

Since Jul 6Pushed 5y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (12)Versions (6)Used By (0)

Railsbank PHP SDK Kit
=====================

[](#railsbank-php-sdk-kit)

This is the Railsbank integration using PHP.

This repository is actively used in projects, and we will be maintaining it regularly.

[![Build Status](https://camo.githubusercontent.com/2f84b125ae9f2f2453106e98ddc7511496cab54a22ef2c494949bc37af7ecb13/68747470733a2f2f7472617669732d63692e636f6d2f6c6576656c666976657465616d2f7261696c7362616e6b2d73646b2e7376673f746f6b656e3d343241396538597a394843487567595657797a57266272616e63683d6d6173746572)](https://travis-ci.com/levelfiveteam/railsbank-sdk)[![Total Downloads](https://camo.githubusercontent.com/2225e44fafabd656dc596552da8fae8587529600bfea63fe0135cdda7d897af9/68747470733a2f2f706f7365722e707567782e6f72672f6c6576656c666976657465616d2f7261696c7362616e6b2d73646b2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/levelfiveteam/railsbank-sdk)[![Latest Stable Version](https://camo.githubusercontent.com/7d59273539a4d09ce93c67ee1e37677afe0f35447ed5cd23ce972563b5391c28/68747470733a2f2f706f7365722e707567782e6f72672f6c6576656c666976657465616d2f7261696c7362616e6b2d73646b2f762f737461626c652e706e67)](https://packagist.org/packages/levelfiveteam/railsbank-sdk)[![Latest Unstable Version](https://camo.githubusercontent.com/03dbf1e4a34703acdc07c862251bf75a0c4cac76ce0cd76f4415d227741da1df/68747470733a2f2f706f7365722e707567782e6f72672f6c6576656c666976657465616d2f7261696c7362616e6b2d73646b2f762f756e737461626c652e706e67)](https://packagist.org/packages/levelfiveteam/railsbank-sdk)[![Coverage Status](https://camo.githubusercontent.com/c2a618a21295b0f0416e25baf9cf9d168896b6bb63374f389aa8ab23c7ab695c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c6576656c666976657465616d2f7261696c7362616e6b2d73646b2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/levelfiveteam/railsbank-sdk?branch=master)[![License](https://camo.githubusercontent.com/abeac550ff38f7b59e8001e564eb7c8263c8d7e0211fe10ad1c8f832057584a6/68747470733a2f2f706f7365722e707567782e6f72672f6c6576656c666976657465616d2f7261696c7362616e6b2d73646b2f6c6963656e73652e706e67)](https://packagist.org/packages/levelfiveteam/railsbank-sdk)

Donations
---------

[](#donations)

\[[![Click here to donate with Crypto](https://camo.githubusercontent.com/e1f98912a7ad0a9a45450785669342ce2faaad30d45830877177fa6c91530683/68747470733a2f2f636f6d6d657263652e636f696e626173652e636f6d2f636865636b6f75742f37356136303039392d376637612d343238622d623031332d653330623134376334326331)](https://camo.githubusercontent.com/e1f98912a7ad0a9a45450785669342ce2faaad30d45830877177fa6c91530683/68747470733a2f2f636f6d6d657263652e636f696e626173652e636f6d2f636865636b6f75742f37356136303039392d376637612d343238622d623031332d653330623134376334326331)

Instructions
------------

[](#instructions)

This is the Railsbank PHP SDK Kit that allows you to provide a full facility to create customer accounts, ledgers, and a mastercard for your business/service.

We use commands and queries to de-couple requests, and to allow the ability to use a messaging queue system (AWS SQS, RabbitMQ etc...).

1. Simply set your application to store the service as a factory;

```
$railsbank = new Railsbank('demo.config.php', 'live_account');

```

2. Create commands and queries as and when you need to (example below returns back a response to give you the API Version);

*Example query:*`$response = $railsbank->handle(new GetVersion());`

*Example Command:*

```
$command = new CreatePerson(
    [
        'name' => 'Mr Sponge Bob',
        'date_of_birth' => '1983-02-02',
        'telephone' => '07000000001',
        'nationality' => 'British',
        'country_of_residence' => 'GB',
        'date_onboarded' => (new \DateTime('now'))->format('d-m-Y'),
        'address' => [ 'address_refinement' => 'Spongebob House, Indian Ocean, Ocean12' ],
    ]
);

$person = $railsbank->handle($command);

```

You will not need to validate data using this service. Validation happens at the command level. Any validation errors will return as a `DomainException` with a json error message.

The valid response will be an immutable object, with the option to see the the full response.

Important note; we are only supporting GBP. Our aim is to release this in v1.2.

Commands and Queries
--------------------

[](#commands-and-queries)

ActionCommand or QueryGETQuery\\Version\\GetVersionGETQuery\\Me\\InformationGETQuery\\Customer\\GetLedgerGETQuery\\Customer\\GetLedgersGETQuery\\Customer\\GetEndusersGETQuery\\Customer\\GetEnduserGETQuery\\Transaction\\GetTransactionGETQuery\\Transaction\\GetTransactionsGETQuery\\Card\\GetCardGETQuery\\Card\\GetCardsGETQuery\\Card\\GetCardsByLedgerIdGETQuery\\Card\\GetCardImageUrlGETQuery\\Card\\GetPinGETQuery\\Beneficiary\\GetBeneficiariesPOSTCommand\\Customer\\EndUsers\\CreatePersonPOSTCommand\\Customer\\Ledger\\CreateLedgerPOSTCommand\\Customer\\Ledger\\CloseLedgerPOSTCommand\\Beneficiary\\CreateBeneficiaryPOSTCommand\\Transaction\\CreateTransactionPOSTCommand\\Card\\CreateCardPOSTCommand\\Card\\ActivateCardSubmitting bugs and feature requests
------------------------------------

[](#submitting-bugs-and-feature-requests)

Bugs and feature requests are tracked on [GitHub](https://github.com/levelfiveteam/railsbank-sdk/issues).

We are actively updating the SDK Kit.

### Licence

[](#licence)

You are free to reuse and adapt this content with credit, for non-commercial purposes. Please review License for further information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~11 days

Total

5

Last Release

2453d ago

### Community

Maintainers

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

---

Top Contributors

[![levelfivehub](https://avatars.githubusercontent.com/u/7773587?v=4)](https://github.com/levelfivehub "levelfivehub (32 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/levelfiveteam-railsbank-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/levelfiveteam-railsbank-sdk/health.svg)](https://phpackages.com/packages/levelfiveteam-railsbank-sdk)
```

###  Alternatives

[drush/drush

Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

2.4k57.4M678](/packages/drush-drush)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M13](/packages/pantheon-systems-terminus)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

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