Download the PHP package programmerhasan/bkash without Composer

On this page you can find all versions of the php package programmerhasan/bkash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bkash

BKash Payment Gateway for Laravel

Welcome to the bKash Laravel Package!
This package allows seamless integration with the bKash payment gateway in Laravel, making transactions quick and hassle-free.

It supports Checkout (URL), Auth & Capture, Refund, and Search Transactions with easy configuration. Built-in automatic grantToken caching (1 hour) ensures full compliance with the latest bKash Tokenized API rules and prevents account lock issues.


โœจ Features

๐Ÿ› ๏ธ Requirements

๐Ÿ“ฆ Installation

โš™๏ธ Vendor publish (config)

After publish config file setup your credential. you can see this in your config directory bkash.php file

๐Ÿ“ Set .env configuration

Add your Bkash credentials and environment settings in the .env file:

๐Ÿ“ Enable or Disable bKash Log

You can turn bKash logging on or off. (Only sandbox/testing mode.)

Logs will be saved in the /storage/logs/laravel.log file.

๐Ÿš€ Usage

Publish a route

"bkash.php" Route include in web.php (require 'bkash2.php';)

Publish a controller

You can override the routes

Use route('bkash.payment.create') in blade

Checkout (URL Based)

1. Create Payment

Create payment response

2. Add callback function

Execute payment response

Query payment response

3. Search Transaction

Response

4. Refund Transaction

Response

5. Refund status check

Response

Auth & Capture (URL)

Create Payment

Capture

Void


Required APIs

  1. Developer Portal (detail Product, workflow, API information): https://developer.bka.sh/docs/checkout-process-overview
  2. Grant Token : https://developer.bka.sh/v1.2.0-beta/reference#gettokenusingpost
  3. Create Payment : https://developer.bka.sh/v1.2.0-beta/reference#createpaymentusingpost
  4. Execute Payment : https://developer.bka.sh/v1.2.0-beta/reference#executepaymentusingpost
  5. Query Payment : https://developer.bka.sh/v1.2.0-beta/reference#querypaymentusingget
  6. Search Transaction Details : https://developer.bka.sh/v1.2.0-beta/reference#searchtransactionusingget

Tokenized Checkout (v2) Demo

  1. Bkash: https://merchantdemo.sandbox.bka.sh/
  2. Go to https://merchantdemo.sandbox.bka.sh/tokenized-checkout/version/v2
  3. Wallet Number: 01770618575
  4. OTP: 123456
  5. Pin: 12121

License

This repository is licensed under the MIT License.

Copyright 2025 ProgrammerHasan.


All versions of bkash with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0|^8.1|^8.2
illuminate/support Version ~6|~7|~8|~9|^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package programmerhasan/bkash contains the following files

Loading the files please wait ...