PHPackages                             tipusultan/laravel-bkash - 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. tipusultan/laravel-bkash

ActiveLibrary[Payment Processing](/categories/payments)

tipusultan/laravel-bkash
========================

A Laravel package for bKash payment integration

v1.0.1(1y ago)015MITPHPPHP &gt;=8.1.0

Since Feb 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/greenviewsoft/Laravel-Bkash)[ Packagist](https://packagist.org/packages/tipusultan/laravel-bkash)[ RSS](/packages/tipusultan-laravel-bkash/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel bKash Payment Gateway
=============================

[](#laravel-bkash-payment-gateway)

A simple and efficient bKash Payment Gateway integration package for Laravel 10 &amp; 11.

Features
--------

[](#features)

- Easy bKash Payment Integration
- Supports both Sandbox &amp; Live Mode
- Handles Refunds &amp; Callbacks
- Compatible with Laravel 10 &amp; 11

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

[](#installation)

### 1. Install Package

[](#1-install-package)

```
composer require tipusultan/laravel-bkash
```

### 2. Publish Package Files

[](#2-publish-package-files)

```
php artisan vendor:publish --provider="Tipusultan\Bkash\BkashServiceProvider"
```

Or publish individual components

```
# Publish config file
php artisan vendor:publish --tag=bkash-config

# Publish views
php artisan vendor:publish --tag=bkash-views

# Publish controller
php artisan vendor:publish --tag=bkash-controller

# Publish service
php artisan vendor:publish --tag=bkash-service
```

### 3. Configure Environment Variables

[](#3-configure-environment-variables)

Add these to your `.env` file:

```
SANDBOX=true
BKASH_USERNAME='your_username'
BKASH_PASSWORD='your_password'
BKASH_APP_KEY='your_app_key'
BKASH_APP_SECRET='your_app_secret'
```

Package Structure
-----------------

[](#package-structure)

```
📂 Laravel Project
├── 📂 resources
│   └── 📂 views/bkash
│       ├── pay.blade.php
│       ├── success.blade.php
│       ├── fail.blade.php
│       ├── refund.blade.php
├── 📂 app
│   ├── 📂 Http/Controllers/Bkash
│   └── 📂 Services/Bkash
├── 📂 routes
│   └── bkash.php
├── 📂 config
│   └── bkash.php

```

Usage
-----

[](#usage)

### Payment Routes

[](#payment-routes)

```
Route::get('/bkash', [BkashController::class, 'payment'])->name('url-pay');
Route::post('/bkash/create', [BkashController::class, 'createPayment'])->name('url-create');
Route::get('/bkash/callback', [BkashController::class, 'callback'])->name('url-callback');
```

### Refund Routes

[](#refund-routes)

```
Route::get('/bkash/refund', [BkashController::class, 'getRefund'])->name('url-get-refund');
Route::post('/bkash/refund', [BkashController::class, 'refundPayment'])->name('url-post-refund');
```

Available Routes
----------------

[](#available-routes)

MethodURIActionRoute NameGET/bkashShow payment formurl-payPOST/bkash/createCreate paymenturl-createGET/bkash/callbackHandle callbackurl-callbackGET/bkash/refundShow refund formurl-get-refundPOST/bkash/refundProcess refundurl-post-refund### Available Views

[](#available-views)

ViewPathPayment Formresources/views/bkash/pay.blade.phpSuccess Pageresources/views/bkash/success.blade.phpFailure Pageresources/views/bkash/fail.blade.phpRefund Formresources/views/bkash/refund.blade.phpImportant Notice
----------------

[](#important-notice)

⚠️ This bKash Payment Gateway package is for educational &amp; testing purposes only. Before using it in production, thoroughly test all features and report any issues.

Contributing
------------

[](#contributing)

Found a bug? Open an issue in the GitHub repository. Contributions are welcome! Feel free to submit pull requests.

License
-------

[](#license)

This package is licensed under the MIT License.

---

🌟 If you find this package helpful, please star this repository!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance44

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

2

Last Release

443d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/214b34900775a55df4724447ec946911c76aa0ee1451eb2e9f118228d8af2940?d=identicon)[greenviewsoft](/maintainers/greenviewsoft)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tipusultan-laravel-bkash/health.svg)

```
[![Health](https://phpackages.com/badges/tipusultan-laravel-bkash/health.svg)](https://phpackages.com/packages/tipusultan-laravel-bkash)
```

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)[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)

PHPackages © 2026

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