PHPackages                             itsfaqih/faspay - 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. itsfaqih/faspay

ActiveLibrary[Payment Processing](/categories/payments)

itsfaqih/faspay
===============

Unofficial Faspay SDK

0.5.0(3y ago)4121↓33.3%[2 PRs](https://github.com/itsfaqih/faspay/pulls)MITPHPPHP &gt;=7.4

Since Jul 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/itsfaqih/faspay)[ Packagist](https://packagist.org/packages/itsfaqih/faspay)[ Docs](https://github.com/itsfaqih/faspay)[ GitHub Sponsors](https://github.com/itsfaqih)[ RSS](/packages/itsfaqih-faspay/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (5)Versions (9)Used By (0)

Unofficial Faspay SDK for PHP
=============================

[](#unofficial-faspay-sdk-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/caf3fc12e89d2ef6cf95fe7838fd6d4532b85856ff00fc44492af4480b7c993d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69747366617169682f6661737061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/itsfaqih/faspay)[![Tests](https://github.com/itsfaqih/faspay/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/itsfaqih/faspay/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/0a38081c349affcb458d9b0552f3478aa22355abb2d95769d5e5041de3e41951/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69747366617169682f6661737061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/itsfaqih/faspay)

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

[](#installation)

You can install the package via composer:

```
composer require itsfaqih/faspay
```

Usage
-----

[](#usage)

Configure the credentials and the client.

```
use ItsFaqih\Faspay\Client;
use ItsFaqih\Faspay\Entities\User;
use ItsFaqih\Faspay\Enums\Environment;

$user = new User('bot98765', 'p@ssw0rd', '98765', 'FASPAY');

$faspayClient = new Client($user, Environment::DEVELOPMENT());
```

### Payment Channel Inquiry

[](#payment-channel-inquiry)

```
$faspayClient->paymentChannelInquiry();
```

### Post Data Transaction

[](#post-data-transaction)

```
use ItsFaqih\Faspay\Entities\Bill;
use ItsFaqih\Faspay\Entities\BillItem;
use ItsFaqih\Faspay\Entities\Customer;
use ItsFaqih\Faspay\Entities\Payment;
use ItsFaqih\Faspay\Enums\PaymentChannel;
use ItsFaqih\Faspay\Enums\PaymentType;

$bill = new Bill('TRX-123', new \DateTime(), (new \DateTime())->modify('+1 day'), 'Red Shoes with special price', '250000');
$payment = new Payment(PaymentChannel::LINKAJA(), PaymentType::FULL_SETTLEMENT());
$customer = new Customer('001', 'John Smith', '08123456789', 'john.smith@example.com');
$item = new BillItem('Red Shoes', 1, '250000');

$faspayClient->postDataTransaction($bill, $payment, $customer, [$item]);
```

### Inquiry Payment Status

[](#inquiry-payment-status)

```
$trxId = '9876530200004184';
$billNo = 'TRX-123';

$faspayClient->inquiryPaymentStatus($trxId, $billNo);
```

### Cancel Transaction

[](#cancel-transaction)

```
$trxId = '9876530200004184';
$billNo = 'TRX-123';
$reason = 'Wrong order';

$faspayClient->cancelTransaction($trxId, $billNo, $reason);
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~1 days

Total

6

Last Release

1409d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48067039?v=4)[Faqih Muntashir](/maintainers/itsfaqih)[@itsfaqih](https://github.com/itsfaqih)

---

Top Contributors

[![itsfaqih](https://avatars.githubusercontent.com/u/48067039?v=4)](https://github.com/itsfaqih "itsfaqih (28 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

---

Tags

faspayitsfaqih

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/itsfaqih-faspay/health.svg)

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

###  Alternatives

[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)

PHPackages © 2026

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