PHPackages                             nrbsolution/nagad\_payment\_gateway - 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. nrbsolution/nagad\_payment\_gateway

ActiveLibrary[Payment Processing](/categories/payments)

nrbsolution/nagad\_payment\_gateway
===================================

Laravel nagad payment package

3393PHP

Since Feb 2Pushed 3y agoCompare

[ Source](https://github.com/NRB-Solutions-Limited/Nagad-PGW-laravel)[ Packagist](https://packagist.org/packages/nrbsolution/nagad_payment_gateway)[ RSS](/packages/nrbsolution-nagad-payment-gateway/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel package for Nagad Payment Gateway
=========================================

[](#laravel-package-for-nagad-payment-gateway)

Nagad is a payment gateway service provided by the Bangladesh Post Office. It enables merchants to accept online payments from customers in a secure and convenient manner. Nagad offers a range of features, including the ability to receive payments 24/7, real-time payment tracking, and support for multiple payment methods such as mobile banking . With Nagad, merchants can easily manage their online transactions and grow their business.

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

[](#installation)

Run the command below to install via Composer

```
composer require nrbsolution/nagad_payment_gateway
```

Getting Started
---------------

[](#getting-started)

`Nagad Payment Gateway` requires change to your composer.json file

```
 "minimum-stability": "stable",
```

to

```
 "minimum-stability": "dev",
```

`Nagad Payment Gateway` requires add to your env file

```
NAGAD_SANDBOX=true // true only sandbox testing purpose or main api work only NAGAD_SANDBOX=false
NAGAD_MERCHANT_ID= //Your NAGAD_MERCHANT_ID
NAGAD_MERCHANT_NUMBER= // Your NAGAD_MERCHANT_NUMBER
NAGAD_PUBLIC_KEY= // Your NAGAD_PUBLIC_KEY
NAGAD_PRIVATE_KEY= // Your NAGAD_PRIVATE_KEY
NAGAD_ORDER_ID_PREFIX= // You can change your order id prefix
NAGAD_LOGO=// Your logo url

// if you  controls the response type callback
//You need change to your config/nagad_payment_gateway.php file
//  Supported: "json", "html",

"response_type"   => "html"
// You need to publish this package
php artisan vendor:publish --provider="App\Providers\NagadPaymentGatewaySerivceProvider"
```

### Instructions for usegs

[](#instructions-for-usegs)

```
Route:
http://{Your Host address}/nagad/{reference_id}/{amount}
// Example:
http://127.0.0.1:8000/nagad/pid_234234234/3000
```

License
-------

[](#license)

Released under the MIT License attached with this code.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/03a4f26e2aaf1750564c6efd488157ca5ee58c8292197fe611d13833aa36db3c?d=identicon)[fnnaeem](/maintainers/fnnaeem)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/nrbsolution-nagad-payment-gateway/health.svg)

```
[![Health](https://phpackages.com/badges/nrbsolution-nagad-payment-gateway/health.svg)](https://phpackages.com/packages/nrbsolution-nagad-payment-gateway)
```

###  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)
