PHPackages                             thanhvo-cse/worldpay - 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. [API Development](/categories/api)
4. /
5. thanhvo-cse/worldpay

ActiveLibrary[API Development](/categories/api)

thanhvo-cse/worldpay
====================

PHP Library for Worldpay API

v1.4.0(2y ago)2442MITPHP

Since Jun 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/thanhvo-cse/worldpay)[ Packagist](https://packagist.org/packages/thanhvo-cse/worldpay)[ RSS](/packages/thanhvo-cse-worldpay/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (1)Versions (8)Used By (0)

worldpay-wpg
============

[](#worldpay-wpg)

Connect to the Worldpay API.

#### Installation

[](#installation)

##### Composer

[](#composer)

```
composer require thanhvo-cse/worldpay

```

##### Event

[](#event)

- Define your observer:

```
use ThanhVo\Worldpay\WPG\Client;

class BeforeRequestListener implements ThanhVo\Worldpay\Event\ObserverInterface
{
/**
     * @return string
     */
    public function getSubject(): string
    {
        return Client::EVENT_BEFORE_REQUEST;
    }

    /**
     * @param $data
     * @return mixed
     */
    public function onEvent($data)
    {
        // Handle your Observer here
        var_dump($data);
    }
}
```

- Add your observer

```
$hosted = new \ThanhVo\Worldpay\WPG\Service\Hosted();
$beforeObserver = new BeforeRequestListener();
$hosted->addEventObserver($beforeObserver);
...
```

##### Event list

[](#event-list)

- before\_request
- after\_response

#### Documentation

[](#documentation)

#### Sample

[](#sample)

The sample is located in sample directory. Please find the readme file in there.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 82.4% 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 ~255 days

Recently: every ~303 days

Total

6

Last Release

878d ago

Major Versions

0.1.0 → v1.0.02020-08-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf56052bd7e78a1d6e1e46dfbc8a833f2bbf143304e1421f9e0f91dab024b438?d=identicon)[thanhvo-cse](/maintainers/thanhvo-cse)

---

Top Contributors

[![thanhvo-cse](https://avatars.githubusercontent.com/u/28495119?v=4)](https://github.com/thanhvo-cse "thanhvo-cse (28 commits)")[![legato-thanhvo](https://avatars.githubusercontent.com/u/66261026?v=4)](https://github.com/legato-thanhvo "legato-thanhvo (4 commits)")[![clara-truong](https://avatars.githubusercontent.com/u/74709358?v=4)](https://github.com/clara-truong "clara-truong (2 commits)")

### Embed Badge

![Health badge](/badges/thanhvo-cse-worldpay/health.svg)

```
[![Health](https://phpackages.com/badges/thanhvo-cse-worldpay/health.svg)](https://phpackages.com/packages/thanhvo-cse-worldpay)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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