PHPackages                             gianninasd/pplib - 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. gianninasd/pplib

ActiveLibrary[Payment Processing](/categories/payments)

gianninasd/pplib
================

PHP Library for payment processing integration

v1.0.2(4y ago)0154MITPHPPHP &gt;=7.3.0CI failing

Since Mar 20Pushed 4y agoCompare

[ Source](https://github.com/gianninasd/ppLib)[ Packagist](https://packagist.org/packages/gianninasd/pplib)[ RSS](/packages/gianninasd-pplib/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (3)Versions (12)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/48fcaa34b6c01e47cd5e7812aa9a2456c5390b8044e281b5b082c906e26bb92a/68747470733a2f2f706f7365722e707567782e6f72672f6769616e6e696e6173642f70706c69622f762f737461626c65)](https://packagist.org/packages/gianninasd/pplib)[![Latest Unstable Version](https://camo.githubusercontent.com/b8a8fe67feaf09f795ceedc935f1b5e905905ce92adaca504c40a93a54c6863a/68747470733a2f2f706f7365722e707567782e6f72672f6769616e6e696e6173642f70706c69622f762f756e737461626c65)](https://packagist.org/packages/gianninasd/pplib)[![Total Downloads](https://camo.githubusercontent.com/5b92ccc55bed98419a3218e45e22bc625ab90b354d24cc1c65ba402639b2e2c3/68747470733a2f2f706f7365722e707567782e6f72672f6769616e6e696e6173642f70706c69622f646f776e6c6f616473)](https://packagist.org/packages/gianninasd/pplib)

PPLib
=====

[](#pplib)

PHP Library for payment processing integration

Pre-requisites
--------------

[](#pre-requisites)

- Install Composer
- Install PHP 7.x

Getting started
---------------

[](#getting-started)

- Clone the repo from github to your local machine
- Install all dependencies, run `composer install` and a *vendor* folder will be generated

Automated Tests
---------------

[](#automated-tests)

- Update the values of the global variables in the `tests/unit/_bootstrap.php` file
- To execute the unit tests, from a console run: `vendor/bin/codecept.bat run unit`

Usage
-----

[](#usage)

Below is some sample code on how to use the various classes to prepare, send and process a payment.

```
// will be your own class representing the full billing data
$member = new class {
  ...
  public $firstName = "John";
  public $lastName = "Doe";
  ...
};

$parser = new PaysafeParser();

// create the JSON body first
$obj = $parser->parseRequest( $uuid, $token, $member, $amt );
$body = json_encode($obj, JSON_NUMERIC_CHECK);

$req = new PaymentRequest();
$req->id = "rick@sdf3.com";
$req->uuid = uniqid("", true);
$req->body = $body;

// Send the request to the remote third party service provider
$ps = new PaysafePaymentService( "https://somedomain.com/somepath", "some authentication token" );
$resp = $ps->process( $req );

// Process the response
$jsonResponse = $parser->parseResponse( $resp );
echo( $jsonResponse );
```

References
----------

[](#references)

-
-
-
-
-
-  - describes how to submit to packagist
-

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.9% 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 ~60 days

Recently: every ~146 days

Total

11

Last Release

1685d ago

Major Versions

v0.10.0 → v1.0.02020-04-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/07807fcd017cfaabbfe0f6ef918c84714be877c1115886733d170ce528b23ab2?d=identicon)[gianninasd](/maintainers/gianninasd)

---

Top Contributors

[![gianninasd](https://avatars.githubusercontent.com/u/22918416?v=4)](https://github.com/gianninasd "gianninasd (31 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/gianninasd-pplib/health.svg)

```
[![Health](https://phpackages.com/badges/gianninasd-pplib/health.svg)](https://phpackages.com/packages/gianninasd-pplib)
```

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)

PHPackages © 2026

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