PHPackages                             sdrenth/spraypay - 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. sdrenth/spraypay

ActiveLibrary

sdrenth/spraypay
================

SprayPay API client for PHP

1.0.0(5y ago)09PHP

Since Mar 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sdrenth/SprayPay)[ Packagist](https://packagist.org/packages/sdrenth/spraypay)[ RSS](/packages/sdrenth-spraypay/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

SprayPay
========

[](#spraypay)

SprayPay API client for PHP.

Getting started
---------------

[](#getting-started)

For usage and allowed parameters please view the official SprayPay API documentation.

**Initialize client**

```
$client = new SprayPayApiClient();
$client->setApiKey('YOUR_API_KEY);
$client->setWebshopId('YOUR_WEBSHOP_ID');
$client->setTestMode();

```

**Run preflight request**

```
$response = $client->loanrequestpreflight->preflight([
    'emailAddress'       => 'some_email',
    'webshopOrderAmount' => '10.00',
    'webshopOrderId'     => 1,
    'webshopCustomerId'  => 1,
    'returnUrl'          => ''
]);

```

**Payment/Loan request**

```
$loanrequest->create($data, true, true);

```

**Get order status**

```
$this->client->orderstatus->get(1);

```

**Create a chargeback request**

```
$client->chargebackrequest->create([
    'date'                      => '2020-02-02',
    'amount'                    => '10.00',
    'chargebackNotificationUrl' => '',
    'orderId'                   => 1,
    'reason'                    => 'Some reason'
]);

```

**Get chargeback request status**

```
$response = $client->chargebackrequest->getStatus(['reference' => 'SOME_REFERENCE']);

```

**Payment resource example**

```
$payment = new Payment($client->loanrequest->create($data, true, true));
$payment->isPaid();

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

1881d ago

Major Versions

0.0.1 → 1.0.02021-03-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/9939bf86d9e19894e4e36219c8ba5668215b0092c705c5d169601c8de4d509c9?d=identicon)[sdrenth](/maintainers/sdrenth)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/sdrenth-spraypay/health.svg)

```
[![Health](https://phpackages.com/badges/sdrenth-spraypay/health.svg)](https://phpackages.com/packages/sdrenth-spraypay)
```

PHPackages © 2026

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