PHPackages                             moneymeg/starling-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. moneymeg/starling-php-sdk

ActiveComposer

moneymeg/starling-php-sdk
=========================

A PHP SDK for the Starling Banking API.

1.0(8y ago)10812PHP

Since Nov 23Pushed 8y ago2 watchersCompare

[ Source](https://github.com/MoneyMeg/starling-php-sdk)[ Packagist](https://packagist.org/packages/moneymeg/starling-php-sdk)[ RSS](/packages/moneymeg-starling-php-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Starling PHP SDK
================

[](#starling-php-sdk)

[![CircleCI](https://camo.githubusercontent.com/a4af8a5d10ee7ef09946605e9f6f1565e4d52920f4f0e293ecd88fd439e9d6aa/68747470733a2f2f636972636c6563692e636f6d2f67682f4d6f6e65794d65672f737461726c696e672d7068702d73646b2e7376673f7374796c653d73766726636972636c652d746f6b656e3d65303363636563663338333261633362633632626435363936343664353965643631306332666239)](https://circleci.com/gh/MoneyMeg/starling-php-sdk) [![StyleCI](https://camo.githubusercontent.com/b983fdd41775d8f9ffefc95679c3db4ad45860bc6a1c156a8ac7c01d51b1eb65/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131313830343939322f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/111804992) [![](https://camo.githubusercontent.com/49482beec6aa6e4d0d15d02b98c5cd62313e4ac365f976670ab0369430426668/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30313632336639656362643638613534613630302f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/MoneyMeg/starling-php-sdk/maintainability)

This is an SDK for the starling SDK, you'll have to take care of getting tokens from users but once you have one this SDK will wrap the whole API to allow for ease of use in PHP.

Right now its only read functions, I'll some write functions when I get around to using them.

See the tests folder for all the requests, you can pass any request to the request function on `Starling\Api\Client` if you want to write your own they'll need to implements `RequestInterface`

I didn't want to be too opinionated so responses are not formatted.

Install
-------

[](#install)

```
composer require moneymeg/starling-php-sdk

```

Test
----

[](#test)

```
$ ./vendor/bin/phpunit

```

Get a users balance
-------------------

[](#get-a-users-balance)

```
$identity = new Starling\Identity($client_token);
$client = new Starling\Api\Client($identity, ['env' => 'prod']);
$request = new Starling\Api\Request\Accounts\Balance();

try {
    $result = $client->request($request);
    $body = json_decode((string) $result->getBody(), true);
    print "Your balance is " . $body['effectiveBalance'] . " as for right now.";
} catch (Exception $e) {
    print $e->getMessage();
}
```

Get a users account details
---------------------------

[](#get-a-users-account-details)

```
$identity = new Starling\Identity($client_token);
$client = new Starling\Api\Client($identity, ['env' => 'prod']);
$request = new Starling\Api\Request\Accounts();

try {
    $result = $client->request($request);
    $body = json_decode((string) $result->getBody(), true);
    print $body;
} catch (Exception $e) {
    print $e->getMessage();
}
```

Gets a customers Direct Debits
------------------------------

[](#gets-a-customers-direct-debits)

```
$identity = new Starling\Identity($client_token);
$client = new Starling\Api\Client($identity, ['env' => 'prod']);
$request = new Starling\Api\Request\DirectDebits();

try {
    $result = $client->request($request);
    $body = json_decode((string) $result->getBody(), true);
    print $body;
} catch (Exception $e) {
    print $e->getMessage();
}
```

Get transactions for the last 7 days
------------------------------------

[](#get-transactions-for-the-last-7-days)

```
$identity = new Starling\Identity($client_token);
$client = new Starling\Api\Client($identity);

$request = new Starling\Api\Request\Transactions([
    'from' => new DateTime("-7 Days"),
    'to'   => new DateTime(),
]);

try {
    $result = $client->request($request);
    $body = json_decode((string) $result->getBody(), true);
    print $body;
} catch (Exception $e) {
    print $e->getMessage();
}
```

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3090d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6cee12237f7ad937cba998c0a4745f87986389a414a529309c0ab15095801d20?d=identicon)[alancole](/maintainers/alancole)

---

Top Contributors

[![waxim](https://avatars.githubusercontent.com/u/3833567?v=4)](https://github.com/waxim "waxim (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/moneymeg-starling-php-sdk/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

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