Download the PHP package unipay/unipay-bd without Composer

On this page you can find all versions of the php package unipay/unipay-bd. 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 unipay-bd

Laravel Logo

UniPay BD โ€” Unified Bangladesh Payment Gateway for Laravel

The ultimate unified Laravel payment gateway package for Bangladeshi Mobile Financial Services (MFS) & Payment Gateways.

Package Version License PHP Version Laravel Version Tests


๐Ÿ“Œ Table of Contents


๐Ÿš€ Overview

UniPay BD (unipay/unipay-bd) provides a seamless, developer-friendly driver-based payment integration for Laravel applications operating in Bangladesh.

Inspired by Laravel's native driver pattern (FilesystemManager, CacheManager), UniPay allows developers to integrate bKash, Nagad, Rocket, Upay, CellFin, SSLCommerz, and Shurjopay using a single, normalized API syntax.

Instead of writing fragmented, gateway-specific API logic for each payment provider, UniPay BD normalizes all request payloads and response structures (PaymentResponse) across all Bangladeshi payment gateways.


๐Ÿ’ณ Supported Payment Gateways

UniPay BD natively supports 7 Bangladeshi payment providers:

Gateway Driver MFS / Provider Security & Protocol Supported Operations
bKash bkash bKash PGW Tokenized REST API v1.2 with Bearer token caching Create, Execute, Query, Refund
Nagad nagad Nagad RSA OpenSSL Public Key Encryption & Private Key Signing Create, Complete, Verify, Refund
Rocket rocket Dutch-Bangla Bank (DBBL) Merchant API v1 with Terminal ID Create, Verify, Refund
Upay upay UCB Fintech Bearer Token REST API Create, Verify, Refund
CellFin cellfin Islami Bank (IBBL) Reference ID Checkout API Create, Verify, Refund
SSLCommerz sslcommerz SSL Wireless GWProcess v4 API & Validation API Create, Validate, Refund
Shurjopay shurjopay ShurjoMukhi Shurjopay API v2 Tokenized Create, Verify, Refund

โœจ Key Features


โš™๏ธ Requirements


๐Ÿ“ฆ Installation

Install the package via Composer:

Run the Artisan installer to publish the configuration file and database migrations:


๐Ÿ”ง Configuration

Add your payment gateway credentials to your application's .env file:


๐Ÿ’ป Quick Start & Usage

1. Initiate Payment

To start a checkout process, build a PaymentRequest and call Payment::createPayment():


2. Handle Payment Callbacks & Webhooks

UniPay automatically registers a unified callback route at /unipay/callback/{gateway}.

When a customer completes payment, the MFS provider redirects back to this endpoint. UniPay automatically executes status verification and dispatches Laravel events.


3. Listen to Payment Events

Decouple your order processing logic by listening to UniPay events in App\Providers\EventServiceProvider.php:

Inside your event listener class:


4. Process Refunds

To issue a full or partial refund to a customer:


5. Query Payment Status

Query any transaction status explicitly at any time:


๐Ÿ› ๏ธ Extending with Custom Drivers

You can easily register custom gateway drivers using Payment::extend():


โš ๏ธ Exception & Error Handling

UniPay provides a clean exception hierarchy:


๐Ÿงช Testing

UniPay BD includes a full Pest & PHPUnit test suite with 100% mocked HTTP responses and OpenSSL key pair generation.

Run the test suite:

Expected output:


๐Ÿ”’ Security

If you discover any security-related issues, please email [email protected] instead of using the public issue tracker.


๐Ÿ“„ License

UniPay BD is open-sourced software licensed under the MIT License.


Crafted with โค๏ธ for the Bangladeshi Developer Community.


All versions of unipay-bd with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0 || ^11.0
illuminate/contracts Version ^10.0 || ^11.0
guzzlehttp/guzzle Version ^7.5
ext-json Version *
ext-openssl Version *
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 unipay/unipay-bd contains the following files

Loading the files please wait ...