Download the PHP package payguard/bagisto-payguard without Composer

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

PayGuard for Bagisto

Packagist Version Bagisto PHP

Accept bKash and Nagad payments in your Bagisto store, powered by PayGuard — the payment gateway built for Bangladesh merchants.


Features


Requirements

Requirement Version
PHP ^8.1
Bagisto ^2.0
PayGuard account app.sourcemonkey.online

Installation

Laravel auto-discovery registers the service provider automatically — no manual bootstrap/providers.php edits needed.


Configuration

Step 1 — PayGuard Dashboard

Log into app.sourcemonkey.online and collect:

Item Where to find it
API Key API & Webhooks → Generate Key
Webhook Secret Connections → Edit → Webhook Secret
bKash Connection ID Connections → bKash row → ID column
Nagad Connection ID Connections → Nagad row → ID column

Set your store's webhook URL in PayGuard to:

Step 2 — Bagisto Admin Panel

Go to Admin → Configuration → Sales → PayGuard Settings:

Field Value
API Key From PayGuard dashboard
API Base URL https://app.sourcemonkey.online/api/v1
Webhook Secret From PayGuard dashboard

Then configure each method under PayGuard - bKash and PayGuard - Nagad:

Field Value
Status Yes
Title bKash (or Nagad) — shown to customers at checkout
Connection ID Your bKash (or Nagad) connection ID from PayGuard

How It Works

The webhook is the source of truth. Invoice creation happens here regardless of whether the customer's browser makes it back to your site.


Admin Order View

After a successful payment, the PayGuard Transaction ID is displayed in the Admin → Sales → Orders → view page under the payment method section:


Routes

The plugin registers three public routes:

Method URL Purpose
GET /payguard/redirect/{provider} Entry point from checkout — creates order and redirects to PayGuard
GET /payguard/callback/{provider} Browser return from PayGuard after payment
POST /api/payguard/webhook Signed server-to-server IPN from PayGuard

{provider} is bkash or nagad.

The webhook route is CSRF-exempt (server-to-server call) but every request is verified with HMAC-SHA256 before any action is taken.


Local Development (Webhook Testing)

PayGuard can't reach localhost. Use ngrok to expose your local server:

Copy the https://...ngrok-free.app URL and temporarily set it as APP_URL in your .env:

Then run php artisan config:clear and test a full checkout. Switch APP_URL back to http://localhost:8000 when done.


Package Structure


Changelog

1.0.0 — 2026-07-30


Support


License

MIT — see LICENSE.


All versions of bagisto-payguard with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
bagisto/shop Version ^2.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 payguard/bagisto-payguard contains the following files

Loading the files please wait ...