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)43550.5k↓34.5%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 1w ago

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

Popularity51

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

3619d 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

[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60316.6M98](/packages/mollie-mollie-api-php)[transbank/transbank-sdk

Transbank SDK

62698.1k15](/packages/transbank-transbank-sdk)[openbuildings/paypal

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

31176.5k](/packages/openbuildings-paypal)[maksekeskus/maksekeskus-php

Maksekeskus PHP SDK

13208.2k](/packages/maksekeskus-maksekeskus-php)

PHPackages © 2026

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