Download the PHP package hakhant/myanmar-payments without Composer

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

Myanmar Payments for Laravel

Laravel Myanmar payment gateway package for KBZPay, WaveMoney (Wave Pay), 2C2P, and AYA Pay with MMQR support. It provides a single gateway-selection flow, typed request and response DTOs, refunds, callbacks, and Laravel container integration.

Tests Analysis Version Downloads

Supported Providers

Myanmar payment gateway support for Laravel:

Myanmar payments, Myanmar payment gateway, KBZPay Laravel, Wave Pay Laravel, WaveMoney payment gateway, 2C2P Laravel, MMQR Laravel.

Features

Requirements

Installation

Publish Configuration

Environment

Usage

Package Flow

  1. Configure provider credentials in config/myanmar-payments.php
  2. Resolve a gateway through PaymentManager or the MyanmarPayments facade, or use an application use case
  3. Use the high-level manager/wrapper methods for most integrations: createPayment(), queryStatus(), createMmqr(), refund(), verifyCallback()
  4. Use capability helpers like supportsMmqr() when your UI or flow depends on provider features
  5. Drop down to provider() only when you need direct access to a provider gateway
  6. Handle typed DTO responses instead of raw provider payloads

Provider Capability Matrix

Provider Create Payment Query Status Refund Verify Callback MMQR
KBZPay Yes Yes Yes Yes Yes
AYA Pay Yes Yes Yes No Yes
WaveMoney Yes No No Yes Yes
2C2P Yes Yes Yes Yes No

Provider Selection

PaymentManager::provider() and MyanmarPayments::provider() accept either a provider string or the Provider enum.

Recommended Integration Style

For most applications, prefer the higher-level PaymentManager methods instead of resolving a gateway manually.

Use capability helpers when you need conditional behavior by provider:

Query Payment Status

For 2C2P, transactionId is the returned payment token because the transaction-status endpoint queries by payment token.

Refund

Provider-specific refund metadata:

Verify Callback Signature

Prefer verifying callbacks through PaymentManager, the facade, or the VerifyCallback use case instead of calling a gateway's verifyCallback() method directly. The shared entrypoints apply package-level callback protections before provider-specific signature verification:

Configure the tolerance with MM_PAYMENT_CALLBACK_TOLERANCE.

2C2P Notes

WaveMoney Notes

AYA Pay Notes

Webhook Security Notes

MMQR Usage

Supported MMQR providers in this package are KBZPay, AYA, and WaveMoney.

Notes by provider:

For WaveMoney, qr_code is the Wave authenticate URL (.../authenticate?transaction_id=...) returned from payment initialization.

For AYA, qr_code is the returned qrdata string from requestQRPayment.

For KBZPay, qr_code is the raw EMVCo/MMQR payload returned by KBZ.

Facade Usage

Quality Commands

Notes:

Documentation

For custom provider implementation details, see CONTRIBUTION.md.


All versions of myanmar-payments with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
firebase/php-jwt Version ^7.0
phpseclib/phpseclib Version ^3.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 hakhant/myanmar-payments contains the following files

Loading the files please wait ...