PHPackages                             online-payments/sdk-php - 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. online-payments/sdk-php

ActiveLibrary[Payment Processing](/categories/payments)

online-payments/sdk-php
=======================

PHP SDK to communicate with the payment platform server-to-server API

8.4.0(1mo ago)577.9k↓10.6%12MITPHPPHP &gt;=7.4

Since Jan 28Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Online-Payments/sdk-php)[ Packagist](https://packagist.org/packages/online-payments/sdk-php)[ RSS](/packages/online-payments-sdk-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (53)Used By (2)

Online Payments PHP SDK
=======================

[](#online-payments-php-sdk)

Introduction
------------

[](#introduction)

The Online Payments PHP SDK helps you to communicate with the Online Payments Server API. Its primary features are:

- convenient PHP wrapper around the API calls and responses:
    - marshalls PHP request objects to HTTP requests
    - unmarshalls HTTP responses to PHP response objects or PHP exceptions
- handling of all the details concerning authentication
- handling of required metadata

See the [Online Payments Developer Hub](https://docs.direct.worldline-solutions.com/documentation/sdk/server/php/) for more information on how to use the SDK.

Structure of this repository
----------------------------

[](#structure-of-this-repository)

This repository consists out of the following components:

1. The source code of the SDK itself: `/src` and `/lib`
2. The source code of the unit and integration tests: `/tests`

Requirements
------------

[](#requirements)

PHP 7.4 or above is required. In addition, to support streaming uploads, package [robtimus/multipart](https://packagist.org/packages/robtimus/multipart) is required.

Installation via Composer
-------------------------

[](#installation-via-composer)

1. Initialize [Composer](https://getcomposer.org/download/) in your project, if this is not already done, by executing the following command:

    ```
    composer init

    ```
2. Add a requirement to the SDK to your `composer.json` file by executing the following command:

    ```
    composer require online-payments/sdk-php

    ```
3. Add `vendor/autoload.php` to your project, if this is not already done, by adding the following line of code:

    ```
    require __DIR__ . '/vendor/autoload.php';

    ```

Manual installation
-------------------

[](#manual-installation)

1. Download the latest version of the PHP SDK from GitHub. Choose the `sdk-php-x.y.z.tar.gz` file from the [releases](https://github.com/Online-Payments/sdk-php/releases) page, where `x.y.z` is the version number.
2. Add the contents of the `tar.gz` file to your project. The content of the `/src` and `/lib` folders may be combined, if this is required by the project.
3. Add all classes from the `/src` and `/lib` folders to your autoloader; all classes inside these folders are compliant with [PSR-4](http://www.php-fig.org/psr/psr-4/).

Development and testing
-----------------------

[](#development-and-testing)

1. Install [Composer](https://getcomposer.org/download/)
2. From the root of the sdk-php project, run `composer install`
3. Copy `tests/config.json.dist` to `tests/config.json` and replace the template values by actual values
4. From the root of the sdk-php project, `vendor/phpunit/phpunit/phpunit` (or just `phpunit` when it is already installed on your local machine)

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance89

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

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

Every ~29 days

Recently: every ~8 days

Total

52

Last Release

56d ago

Major Versions

3.5.0 → 4.0.02022-07-12

4.6.0 → 5.0.02023-02-20

5.18.0 → 6.0.02025-04-03

6.2.0 → 7.0.02025-08-18

7.5.0 → 8.0.02026-02-02

PHP version history (5 changes)3.0.0PHP &gt;=5.4

5.0.0PHP ~8.0||~8.1

5.2.1PHP ~7.4||~8.0||~8.1

5.14.0PHP ~7.4||~8.0||~8.1||~8.2

5.16.1PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/74f0bdba8e49fa7c6ee169587f8540d6f0715ea56f0e0ca1d80754a0a8b59f9f?d=identicon)[online-payments](/maintainers/online-payments)

---

Top Contributors

[![online-payments-support-team](https://avatars.githubusercontent.com/u/96182451?v=4)](https://github.com/online-payments-support-team "online-payments-support-team (54 commits)")

---

Tags

sdk

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/online-payments-sdk-php/health.svg)

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

###  Alternatives

[yandex-money/yandex-money-sdk-php

Yandex.Money API SDK for PHP

105167.4k2](/packages/yandex-money-yandex-money-sdk-php)[cryptonator/merchant-php-sdk

Cryptonator.com Merchant API SDK for PHP

2713.7k](/packages/cryptonator-merchant-php-sdk)[tatter/stripe

Stripe SDK integration for CodeIgniter 4

115.3k](/packages/tatter-stripe)

PHPackages © 2026

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