| Package | What it does | Install |
|---|---|---|
| msilabs/bkash | bKash Tokenized Checkout for Laravel — create, execute, query and refund payments with a simple Facade. | composer require msilabs/bkash |
| @msilabs/bkash | Server-side bKash Tokenized Checkout v2 client for Node.js, Bun, Deno and edge runtimes. No runtime dependencies, TypeScript types included. | npm install @msilabs/bkash |
msilabs/bkash (Laravel)
@msilabs/bkash (Node.js / TypeScript)
Laravel
use Msilabs\Bkash\Facades\Bkash;
$payment = Bkash::createPayment(
amount: 500,
invoiceNumber: 'INV-1001',
callbackUrl: route('bkash.callback'),
);
return redirect($payment->redirectUrl());Node.js / TypeScript
import { BkashClient } from '@msilabs/bkash'
const bkash = new BkashClient('primary', {
sandbox: true,
appKey: process.env.BKASH_APP_KEY!,
appSecret: process.env.BKASH_APP_SECRET!,
username: process.env.BKASH_USERNAME!,
password: process.env.BKASH_PASSWORD!,
})
const payment = await bkash.createPayment({
amount: 500,
invoiceNumber: 'INV-1001',
callbackUrl: 'https://example.com/bkash/callback',
})These are community, open-source packages. They are not official bKash products.
We make short animated explainers for new developers: one idea per post, with real code.
Laravel for beginners: Folder Structure · MVC · Routing · Blade · Migrations · Eloquent · Request Lifecycle · Middleware · and more
Coming later: PHP, JavaScript and Dart series.
👉 Follow along on LinkedIn.
Issues, ideas and pull requests are welcome on any repository. Found a bug? Open an issue with steps to reproduce. Have a question? Start a discussion.
msilabs · Start typing. Keep learning.
