PHPackages                             quarksgroup/paypack-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. [Payment Processing](/categories/payments)
4. /
5. quarksgroup/paypack-php

ActiveLibrary[Payment Processing](/categories/payments)

quarksgroup/paypack-php
=======================

Paypack SDK for PHP Integration

v0.1.20(2y ago)14.4k↓50%MITPHPPHP &gt;=7.4

Since Jan 11Pushed 2y agoCompare

[ Source](https://github.com/quarksgroup/paypack-php)[ Packagist](https://packagist.org/packages/quarksgroup/paypack-php)[ Docs](https://paypack.rw/)[ RSS](/packages/quarksgroup-paypack-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (12)Used By (0)

Paypack PHP
===========

[](#paypack-php)

Paypack is a cloud service that offers a solution to merchants in need of a resilient, robust and efficient payment service.

Easily request and send funds . Funds are seamlessly delivered to their recipients via mobile money.

Paypack-php is a wrapper around the Paypack REST API that can be easily integrated with any PHP framework.

Setup
-----

[](#setup)

Get [Composer](https://getcomposer.org). For example, on Mac OS:

```
brew install composer
```

Install dependencies:

```
composer require quarksgroup/paypack-php
```

Usage
-----

[](#usage)

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

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

Manual Installation
-------------------

[](#manual-installation)

If you do not wish to use Composer, you can download the [latest release](https://github.com/quarksgroup/paypack-php). Then, to use the bindings, include the `init.php` file.

```
require_once('/path/to/paypack-php/init.php');
```

Dependencies
------------

[](#dependencies)

The bindings require the following extensions in order to work properly:

- [`curl`](https://secure.php.net/manual/en/book.curl.php), although you can use your own non-cURL client if you prefer.
- [`json`](https://secure.php.net/manual/en/book.json.php)

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Getting Started
---------------

[](#getting-started)

Integrating Paypack into your app begins with [creating a Paypack account](https://payments.paypack.rw/register). After a successful registration create an application and a set of `client_id` , `client_secrets` tokens will be generated.

***NOTE:*** Make sure to copy before closing the modal as it's the last time the `client_secret` will be printed to the screen.

Quickstart
----------

[](#quickstart)

Assuming you have your Paypack configuration parameters defined (`client_id`,`client_secret`), making any request is very simple.

Simple usage looks like:

```
$paypack = new  Paypack();

$paypack->config([
'client_id' => 'xxxx',
'client_secret' => 'xxxx'
]);

$transactions = $paypack->Transactions();

print_r($transactions);
```

Intergration
------------

[](#intergration)

### Cashin Request

[](#cashin-request)

The following example generates a cashin request:

```
$cashin = $paypack->Cashin([
	'phone' => "078xxxxxxx",
	'amount' => "100"
]);

print_r($cashin);
```

### Cashout Request

[](#cashout-request)

The following example generates a cashout request:

```
$cashout = $paypack->Cashout([
	'phone' => "078xxxxxxx",
	'amount' => "100"
]);

print_r($cashout);
```

### Transactions

[](#transactions)

The following example returns a list of 100 latest transactions:

```
$transactions = $paypack->Transactions([
	'offset' => "0",
	'limit' => "100"
]);

print_r($transactions);
```

**Info :** This method supports a number of filters.

```
 - offset	String() // offset of transactions to fetch
 - limit	String() // limit of transactions to fetch default is 20
 - from		Date()	// starting date range of transactions to fetch
 - to		Date() // ending date range of transactions to fetch
 - kind		String() //  kind of transactions to fetch eg: CASHIN or CASHOUT
 - client	Number() // transactions for a specific client
```

### Transaction

[](#transaction)

The following example returns one transaction according to its reference number:

```
$transaction = $paypack->Transaction($transactionRef);

print_r($transaction);
```

### Events

[](#events)

The following example returns a list of 100 latest events:

```
$events= $paypack->Events([
	'offset' => "0",
	'limit' => "100"
]);

print_r($events);
```

**Info :** This method supports a number of filters.

```
- offset	String() // offset of events to fetch
 - limit	String() // limit of events to fetch default is 20
 - from		Date()	// starting date range of events to fetch
 - to		Date() // ending date range of events to fetch
 - kind		String() //  kind of events to fetch eg: CASHIN or CASHOUT
 - client	Number() // events for a specific client
 - ref		String() // events for a specific transaction ref
 - status	String() // events with a specific status eg: pending or successfull or failed
```

### Profile

[](#profile)

The following example returns the profile of the authenticated merchant:

```
$profile= $paypack->Me();

print_r($profile);
```

Support
-------

[](#support)

If you meet challenges during your intergration, you can [open an issue through GitHub](https://github.com/quarksgroup/paypack-js/issues).

License
-------

[](#license)

Released under the MIT license.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~74 days

Recently: every ~123 days

Total

11

Last Release

840d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98a9474c3f871a895a7f96a1e9eea628370ede4559fad10850fc32fdb125cb9a?d=identicon)[quarksgroup](/maintainers/quarksgroup)

---

Top Contributors

[![fredshema](https://avatars.githubusercontent.com/u/51389166?v=4)](https://github.com/fredshema "fredshema (27 commits)")

---

Tags

payment processingpaypackpaypack rwandarwanda paymentpaypack phppaypack SDK

### Embed Badge

![Health badge](/badges/quarksgroup-paypack-php/health.svg)

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

###  Alternatives

[iyzico/iyzipay-php

iyzipay api php client

3271.1M27](/packages/iyzico-iyzipay-php)[omise/omise-php

A PHP library designed specifically to connect with Omise API.

71478.0k6](/packages/omise-omise-php)[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

39881.3k6](/packages/cybersource-rest-client-php)[sumup/sumup-ecom-php-sdk

SumUp PHP SDK

51277.1k1](/packages/sumup-sumup-ecom-php-sdk)[unitpay/php-sdk

PHP SDK for Unitpay

4181.8k](/packages/unitpay-php-sdk)[mehdirochdi/cmi-payment-php

PHP package to communicate with the CMI payment plateform in Morocco

833.2k](/packages/mehdirochdi-cmi-payment-php)

PHPackages © 2026

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