PHPackages                             sammy-kariuki/pesaway - 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. sammy-kariuki/pesaway

ActiveLibrary[Payment Processing](/categories/payments)

sammy-kariuki/pesaway
=====================

PesaWay Payments Package

v1.0.0(5y ago)015MITPHPPHP ^5.4.0

Since Dec 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/sammy-kariuki/pesaway)[ Packagist](https://packagist.org/packages/sammy-kariuki/pesaway)[ Docs](https://github.com/sammy-kariuki/pesaway)[ RSS](/packages/sammy-kariuki-pesaway/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/046e44a38b1bcff44d0e54a153f16d107e4350c328249a61d81e4f3a3b85edf1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616d6d792d6b617269756b692f706573617761792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sammy-kariuki/pesaway)[![Build Status](https://camo.githubusercontent.com/9dec63843829d51c5ccbb60e0f0dd774629ef608f2098389da9c4ed4d31ee2f3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73616d6d792d6b617269756b692f706573617761792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/sammy-kariuki/pesaway)[![Quality Score](https://camo.githubusercontent.com/bc4b78d5ed6b6d77c478aae37b1baf27bbc1603467f8251a09b117481cc79c1b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73616d6d792d6b617269756b692f706573617761792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sammy-kariuki/pesaway)[![Total Downloads](https://camo.githubusercontent.com/c6a4bc813b5683c67c549ce3023b8faef7d495b81999843bf1693d082f82f1f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616d6d792d6b617269756b692f706573617761792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sammy-kariuki/pesaway)

This is a Laravel Package for PesaWay Limited's payment API.

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

[](#installation)

You can install the package via composer:

```
composer require sammy-kariuki/pesaway
```

Configuration
-------------

[](#configuration)

Edit the `Config/config.php` file and edit the following:

```
	/*-----------------------------------------
	|The App consumer key
	|------------------------------------------
	*/
	'consumer_key'   => '',

	/*-----------------------------------------
	|The App consumer Secret
	|------------------------------------------
	*/
	'consumer_secret' => '',

	/*-----------------------------------------
	|The paybill number
	|------------------------------------------
	*/
	'paybill'         => ''
```

Usage
-----

[](#usage)

### Trigger Payment

[](#trigger-payment)

Trigger payment as follows:

```
	$paymentResponse=Pesaway::pay_bill(100, '254700xxxxxx', '10');
```

### Verify Manual Payment

[](#verify-manual-payment)

Verify a payment that's been sent to the paybill as follows:

```
	$verifyPaymentResponse=Pesaway::verify_payment(100, '254700xxxxxx', 'OBJ69DM0JD');
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Sammy Kariuki](https://github.com/sammy-kariuki)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1959d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20186163?v=4)[Sammy Kariuki](/maintainers/sammy-kariuki)[@sammy-kariuki](https://github.com/sammy-kariuki)

---

Top Contributors

[![sammy-kariuki](https://avatars.githubusercontent.com/u/20186163?v=4)](https://github.com/sammy-kariuki "sammy-kariuki (18 commits)")

---

Tags

sammy-kariukipesaway

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sammy-kariuki-pesaway/health.svg)

```
[![Health](https://phpackages.com/badges/sammy-kariuki-pesaway/health.svg)](https://phpackages.com/packages/sammy-kariuki-pesaway)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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