PHPackages                             tarsoft/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. [API Development](/categories/api)
4. /
5. tarsoft/toyyibpay

ActiveLibrary[API Development](/categories/api)

tarsoft/toyyibpay
=================

Laravel Package for ToyyibPay API

v0.3.0(2y ago)357.6k↑170%9[1 PRs](https://github.com/tarsofttech/toyyibpay-laravel/pulls)MITPHP

Since Feb 21Pushed 2y ago2 watchersCompare

[ Source](https://github.com/tarsofttech/toyyibpay-laravel)[ Packagist](https://packagist.org/packages/tarsoft/toyyibpay)[ RSS](/packages/tarsoft-toyyibpay/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (5)Dependencies (4)Versions (11)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 tarsoft/toyyibpay

```

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

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

```
php artisan vendor:publish --provider="Tarsoft\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

```

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($category_code);
```

#### Create Bill

[](#create-bill)

```
Toyyibpay::createBill($category_code, [
    'billName' => $request->bill_name,
    'billDescription' => $request->bill_description,
    ...
]);
```

Let's say you have an array of data that you want to convert into an object before passing it to `Toyyibpay::createBill($category_code, $array)`. You can use the `stdClass` class, which is a built-in class in PHP for creating objects on-the-fly. Here's how you can do it:

```
Toyyibpay::createBill($category_code, (object)$array)
```

#### 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*.
- 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

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.4% 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 ~202 days

Recently: every ~167 days

Total

7

Last Release

733d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11327579?v=4)[Dmitriy Tarasov](/maintainers/tarsoft)[@tarsoft](https://github.com/tarsoft)

---

Top Contributors

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

---

Tags

laravelphptarsofttoyyibpay

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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