PHPackages                             solidpay/php-client - 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. solidpay/php-client

ActiveLibrary[Payment Processing](/categories/payments)

solidpay/php-client
===================

PHP-SDK to communicate with the payment provider Solidpay.io

1.0.1(6y ago)04MITPHPPHP &gt;=5.3.0

Since May 13Pushed 6y agoCompare

[ Source](https://github.com/SolidPayOffical/php-client)[ Packagist](https://packagist.org/packages/solidpay/php-client)[ Docs](https://github.com/SolidPayOffical/php-client)[ RSS](/packages/solidpay-php-client/feed)WikiDiscussions master Synced today

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

solidpay-php-client
===================

[](#solidpay-php-client)

`solidpay-php-client` is a official client for Solidpay. The Solidpay API enables you to accept payments in a secure and reliable manner.

Installation
============

[](#installation)

### Composer

[](#composer)

Simply add a dependency on solidpay/solidpay-php-client to your project's composer.json file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json file that just defines a dependency on newest stable version of Solidpay:

```
{
    "require": {
        "solidpay/php-client": "1.0.*"
    }
}

```

### With command line

[](#with-command-line)

Adding the Solidpay repository with command line is easy as well. Just type:

```
composer require solidpay/php-client
```

### Manually upload

[](#manually-upload)

If you cannot use composer or don't have SSH access to your server, you can upload /solidpay/ to your web space. However, then you need to manage the autoloading of the classes yourself.

Usage
=====

[](#usage)

Before doing anything you should register yourself with Solidpay and get access credentials.

### Create a new payment

[](#create-a-new-payment)

```
require_once("/vendor/autoload.php");

use Solidpay\Solidpay;

try {

$api_key = 'YOUR_KEY';
$merchant_id = 'YOUR_MERCHANT_ID';

$client = new Solidpay($api_key, $merchant_id);

$form = array(
    'order_id' => 'YOUR_TRANSACTION_ID',
    'currency' => 'gbp',
    'amount' => '100',
    'capture' => false,
    'return_url' => 'https://yourstore.com/success/123456'
);

$payments = $client->request->post('/payments/', $form);

$status = $payments->httpStatus();

if ($status == 200){
    $payments = $payments->asArray();
    $paymentUrl = $payments['url'];
    $paymentId = $payments['id'];
}

} catch (Exception $e) {

}
```

### Response

[](#response)

If the payload was successful, you will get a success response like the one below.

```
{
    "status": "success",
    "id": "502244",
    "url": "https://solidpay.io/payments/bd1b9bc8c35df675a9b174d499aa7e2e4dfd1658fe8bbd4c4a94a247deb969f3"
}
```

### API Calls

[](#api-calls)

You can afterwards call any method described in Solidpay api with corresponding http method and endpoint. These methods are supported currently: `get`, `post`, `put`, `patch` and `delete`. For full list of API calls you can find all examples in [Postman collection](https://github.com/SolidPayOffical/postman-api).

```
// Get all payments
$payments = $client->request->get('/payments');

// Get specific payment
$payments = $client->request->get('/payments/{id}');

// Refund payment
$form = array(
    'amount' => '100',
);

$payments = $client->request->post('/payments/{id}/refund', $form);

// Capture payment
$form = array(
    'amount' => '100',
);

$payments = $client->request->post('/payments/{id}/capture', $form);
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

2242d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24499070?v=4)[Pijus Sauseris](/maintainers/pijussau)[@pijussau](https://github.com/pijussau)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/solidpay-php-client/health.svg)

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

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)

PHPackages © 2026

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