PHPackages                             mplus/pinch - 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. mplus/pinch

ActiveLibrary

mplus/pinch
===========

A PHP library for Pinch payment gateway.

00PHP

Since Apr 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/79mplus/pinch)[ Packagist](https://packagist.org/packages/mplus/pinch)[ RSS](/packages/mplus-pinch/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Pinch PHP library
=================

[](#pinch-php-library)

This library provides access to Pinch Payment Gateway API from applications written in PHP.

Installation
------------

[](#installation)

You can install the library via composer. Run the following command

```
composer require mplus/pinch

```

To use the library include composer's autoload file

```
require_once('vendor/autoload.php');

```

Usage
-----

[](#usage)

### Create API Client

[](#create-api-client)

```
$client = new mplus\Pinch\PinchApi($merchant_id, $secret_key, $mode);

```

$mode should be test/live

### Execute a real time payment

[](#execute-a-real-time-payment)

```
$client->payment->execute($publishable_key, $card_no, $cvc, $expiry_month, $expiry_year, $card_holder_name, $email, $amount, $description);

```

$description is optional.

### Create a scheduled payment

[](#create-a-scheduled-payment)

```
$client->payment->schedule($payer_id, $transaction_date, $amount, $description);

```

$description is optional.

### Add a payer

[](#add-a-payer)

```
$client->payer->add($email, $first_name, $last_name, $mobile);

```

$last\_name and $mobile are optional.

### Update a payer

[](#update-a-payer)

```
$client->payer->update($id, $email, $first_name, $last_name, $mobile);

```

$last\_name and $mobile are optional.

### Save a payment source

[](#save-a-payment-source)

```
$client->payer->save_payment_source( $payer_id, $source_type, $credit_card_token, $bank_account_name, $bank_account_bsb, $bank_account_number);

```

last 3 parameters are optional.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/35a560a14c9b58ae0e4e82a31b14b03bb7db26b1915b902c85ace95a13307c20?d=identicon)[79mplus](/maintainers/79mplus)

---

Top Contributors

[![79mplus-admin](https://avatars.githubusercontent.com/u/36501099?v=4)](https://github.com/79mplus-admin "79mplus-admin (1 commits)")

### Embed Badge

![Health badge](/badges/mplus-pinch/health.svg)

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

PHPackages © 2026

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