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

ActiveLibrary[Payment Processing](/categories/payments)

wl-online-payments-direct/sdk-php
=================================

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

8.4.0(1mo ago)8690.8k—7%62MITPHPPHP &gt;=7.4

Since May 22Pushed 1mo ago9 watchersCompare

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

READMEChangelog (10)Dependencies (8)Versions (68)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 wl-online-payments-direct/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/wl-online-payments-direct/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

60

—

FairBetter than 99% of packages

Maintenance89

Actively maintained with recent releases

Popularity46

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~32 days

Recently: every ~8 days

Total

67

Last Release

55d 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)1.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/14425524fd4bd899361f69e7ef7a43a23297c7a6b4e3ffad03005b236e000f00?d=identicon)[wl-online-payments-direct](/maintainers/wl-online-payments-direct)

---

Top Contributors

[![worldline-direct-support-team](https://avatars.githubusercontent.com/u/82139942?v=4)](https://github.com/worldline-direct-support-team "worldline-direct-support-team (56 commits)")[![worldline-dev-team](https://avatars.githubusercontent.com/u/60233882?v=4)](https://github.com/worldline-dev-team "worldline-dev-team (14 commits)")

---

Tags

sdk

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/wl-online-payments-direct-sdk-php/health.svg)](https://phpackages.com/packages/wl-online-payments-direct-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)
