PHPackages                             nourollahr/laravel-fake-payment - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. nourollahr/laravel-fake-payment

ActiveLibrary[Testing &amp; Quality](/categories/testing)

nourollahr/laravel-fake-payment
===============================

A fake payment gateway package for Laravel (for testing purposes)

1.0.3(7mo ago)911MITPHPPHP &gt;=8.0

Since Sep 26Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/nourollahr/laravel-fake-payment)[ Packagist](https://packagist.org/packages/nourollahr/laravel-fake-payment)[ Docs](https://github.com/nourollahr/laravel-fake-payment)[ RSS](/packages/nourollahr-laravel-fake-payment/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Fake Payment
====================

[](#laravel-fake-payment)

###  A simple package to simulate a payment gateway in Laravel. Ideal for testing projects without using a real payment gateway.

[](#-----a-simple-package-to-simulate-a-payment-gateway-in-laravel----ideal-for-testing-projects-without-using-a-real-payment-gateway)

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

[](#installation)

```
composer require nourollahr/laravel-fake-payment
```

Publish Config and Views (Optional)
-----------------------------------

[](#publish-config-and-views-optional)

#### You can publish the config and views to customize the package behavior and appearance:

[](#you-can-publish-the-config-and-views-to-customize-the-package-behavior-and-appearance)

```
# Publish config
php artisan vendor:publish --provider="Nourollahr\FakePayment\FakePaymentServiceProvider" --tag=config

# Publish views
php artisan vendor:publish --provider="Nourollahr\FakePayment\FakePaymentServiceProvider" --tag=views
```

Usage
-----

[](#usage)

### New Payment:

[](#new-payment)

```
use FakePayment\Facades\FakePayment;

$amount = 10000;

// Optional callback URL. If null, the user will be redirected to the package's result page
$callbackUrl = route('invoices.verify'); // or null

$payment = FakePayment::pay($amount, $callbackUrl);

// Redirect user to the fake payment page
return redirect($payment['redirect_url']);
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance63

Regular maintenance activity

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

Total

4

Last Release

228d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2619631bd2f798d57fa64fc4abf1adc9c23d62c55c15f4e8fc61b70ff22e6d26?d=identicon)[nourollahr](/maintainers/nourollahr)

---

Top Contributors

[![nourollahr](https://avatars.githubusercontent.com/u/52418135?v=4)](https://github.com/nourollahr "nourollahr (8 commits)")

---

Tags

developer-toolsdevtoolsfake-paymentfake-payment-gatewaylaravellaravel-packagelaravel-testingmock-paymentmock-payment-gatewaypaymentpayment-gatewayphpqa-toolssandbox-paymenttestingunit-testingtestinglaravelfakepaymentgatewayBankpurchaseBankingiranpayment system

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/nourollahr-laravel-fake-payment/health.svg)

```
[![Health](https://phpackages.com/badges/nourollahr-laravel-fake-payment/health.svg)](https://phpackages.com/packages/nourollahr-laravel-fake-payment)
```

###  Alternatives

[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[dena-a/iran-payment

a Laravel package to handle Internet Payment Gateways for Iran Banking System

312.4k1](/packages/dena-a-iran-payment)[larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

24553.7k](/packages/larabook-gateway)[parsisolution/gateway

A Laravel package for connecting to all Iraninan payment gateways

231.7k](/packages/parsisolution-gateway)

PHPackages © 2026

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