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

AbandonedArchivedLibrary[API Development](/categories/api)

worldpay/worldpay-lib-php
=========================

Worldpay PHP Library

2.1.2(9y ago)43537.6k↓45.3%31[8 issues](https://github.com/Worldpay/worldpay-lib-php/issues)[3 PRs](https://github.com/Worldpay/worldpay-lib-php/pulls)1MITPHPPHP &gt;=5.3.0

Since Apr 20Pushed 8y agoCompare

[ Source](https://github.com/Worldpay/worldpay-lib-php)[ Packagist](https://packagist.org/packages/worldpay/worldpay-lib-php)[ Docs](https://online.worldpay.com)[ RSS](/packages/worldpay-worldpay-lib-php/feed)WikiDiscussions master Synced today

READMEChangelog (9)DependenciesVersions (5)Used By (1)

Worldpay PHP Library 2.1.2
==========================

[](#worldpay-php-library-212)

#### Issues

[](#issues)

Please see our [support contact information](https://developer.worldpay.com/jsonapi/faq/articles/how-can-i-contact-you-for-support) to raise an issue.

#### Installation

[](#installation)

##### Composer

[](#composer)

Add to your composer.json:

```
"worldpay/worldpay-lib-php": "~2.1.2"
```

Or run:

```
composer require worldpay/worldpay-lib-php

```

##### Manual

[](#manual)

```
require_once('worldpay-php/init.php');
```

#### Documentation

[](#documentation)

#### API Reference

[](#api-reference)

### Examples

[](#examples)

The examples require editing to support PHP 5.3.

#### index.php

[](#indexphp)

Uses WorldpayJS to generate a token that is posted to create\_order.php. **Change your client key**

#### create\_order.php

[](#create_orderphp)

Creates a Worldpay order with a posted token. \**Change your service key*

#### 3ds\_redirect.php

[](#3ds_redirectphp)

Authorizes a 3DS order \**Change your service key*

#### refund.php

[](#refundphp)

Enter your Worldpay order code and posts it to refund\_order.php

#### refund\_order.php

[](#refund_orderphp)

Refunds a Worldpay order with a posted order code **Change your service key**

#### partial\_refund.php

[](#partial_refundphp)

Enter your Worldpay order code and amount to refund and posts it to partial\_refund\_order.php

#### partial\_refund\_order.php

[](#partial_refund_orderphp)

Refunds a Worldpay order with a posted order code **Change your service key**

#### stored\_cards.php

[](#stored_cardsphp)

Enter your Worldpay reusable token and posts it to stored\_cards.php

#### get\_stored\_cards.php

[](#get_stored_cardsphp)

Shows stored card details from posted token \**Change your service key*

### Requirements

[](#requirements)

PHP 5.3+ Curl

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~50 days

Total

4

Last Release

3574d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb91100268dff8a774112c1eb8099af1881eb57608ceb828bfe186e6cf00fba1?d=identicon)[worldpay-dev](/maintainers/worldpay-dev)

---

Top Contributors

[![ao](https://avatars.githubusercontent.com/u/1898708?v=4)](https://github.com/ao "ao (18 commits)")[![o10g](https://avatars.githubusercontent.com/u/201847?v=4)](https://github.com/o10g "o10g (1 commits)")[![pfich-wp](https://avatars.githubusercontent.com/u/46560516?v=4)](https://github.com/pfich-wp "pfich-wp (1 commits)")[![ssimmie-wpay](https://avatars.githubusercontent.com/u/14092272?v=4)](https://github.com/ssimmie-wpay "ssimmie-wpay (1 commits)")

---

Tags

apipaymentsworldpayuiisthebest

### Embed Badge

![Health badge](/badges/worldpay-worldpay-lib-php/health.svg)

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

###  Alternatives

[transbank/transbank-sdk

Transbank SDK

62676.5k14](/packages/transbank-transbank-sdk)[openbuildings/paypal

PayPal SDK for ExpressCheckout and AdaptivePayments. Supports recurring payments, simple payments, parallel payments and chained payments.

31176.4k](/packages/openbuildings-paypal)[samerior/mobile-money

Mobile payments API - Kenya

252.3k](/packages/samerior-mobile-money)

PHPackages © 2026

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