PHPackages                             hannanyusop/toyyibpay - 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. hannanyusop/toyyibpay

ActiveLibrary[Payment Processing](/categories/payments)

hannanyusop/toyyibpay
=====================

Laravel 9 Package for ToyyibPay API (UPDATED)

v1.0.0(4y ago)03.2kMITPHP

Since Feb 21Pushed 4y agoCompare

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

READMEChangelogDependencies (4)Versions (6)Used By (0)

ToyyibPay Access Credentials
----------------------------

[](#toyyibpay-access-credentials)

For complete API usage, some endpoints need `User Secret Key`. For staging/testing purposes, please register an account at [ToyyibPay Staging Portal](https://dev.toyyibpay.com). Here you can create dummy bills and make test payments via Bank Simulators.

***Notification! We will not accept responsibility for loss of money due to improper use of the toyyibPay API and this package.***

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

[](#installation)

To install the package within your laravel project use the following composer command:

```
composer require hannanyusop/toyyibpay

```

Publish ToyyibPay Config File
-----------------------------

[](#publish-toyyibpay-config-file)

```
php artisan vendor:publish --provider="Hannan\Toyyibpay\ToyyibpayServiceProvider"

```

Environment Credential Setup
----------------------------

[](#environment-credential-setup)

```
TOYYIBPAY_USER_SECRET_KEY=ADD-TOYYIBPAY_USER_SECRET_KEY
TOYYIBPAY_REDIRECT_URI=ADD-TOYYIBPAY_REDIRECT_URI
TOYYIBPAY_SANDBOX=ADD-TOYYIBPAY_SANDBOX-MODE

```

Auto Discovery
--------------

[](#auto-discovery)

If you're using Laravel 5.5+ you don't need to manually add the service provider or facade. This will be Auto-Discovered. For all versions of Laravel below 5.5, you must manually add the ServiceProvider &amp; Facade to the appropriate arrays within your Laravel project `config/app.php`

#### Provider

[](#provider)

```
Hannan\Toyyibpay\ToyyibpayServiceProvider::class,
```

#### Alias / Facade

[](#alias--facade)

```
'Toyyibpay' => Hannan\Toyyibpay\ToyyibpayFacade::class,
```

Usage
-----

[](#usage)

#### Use Toyyibpay Facade

[](#use-toyyibpay-facade)

```
use Toyyibpay;

class MyController extends Controller
{
  // Controller functions here...
}
```

#### Get Bank

[](#get-bank)

```
Toyyibpay::getBanks();
```

#### Get Bank FPX

[](#get-bank-fpx)

```
Toyyibpay::getBanksFPX();
```

#### Get Package

[](#get-package)

```
Toyyibpay::getPackages();
```

#### Create Category

[](#create-category)

```
Toyyibpay::createCategory($name, $description);
```

#### Get Category

[](#get-category)

```
Toyyibpay::getCategory($code);
```

#### Create Bill

[](#create-bill)

```
Toyyibpay::createBill($code, $bill_object);
```

#### Get Bill Payment Link

[](#get-bill-payment-link)

```
Toyyibpay::billPaymentLink($bill_code);
```

### Opening an Issue

[](#opening-an-issue)

Before opening an issue there are a couple of considerations:

- You are all cute and geek!
- **Check** that the issue is not *specific to your development environment* setup.
- **Provide** *duplication steps*.
- If you have a questions send me an email to
- Need a coach or assistance, I can do my best on Telegram:
- Please be considerate that this is an open source project that I provide to the community for FREE.

### License

[](#license)

Laravel Toyyibpay(the package) is licensed under the MIT license. Enjoy!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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 ~221 days

Total

3

Last Release

1466d ago

Major Versions

0.1.1 → v1.0.02022-05-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/31cd4b22b9e9ff47af9a52b0bbebc220c42b12e0ab6e815ceed98f0736b55d61?d=identicon)[hannanyusop](/maintainers/hannanyusop)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hannanyusop-toyyibpay/health.svg)

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

###  Alternatives

[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)

PHPackages © 2026

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