Download the PHP package chainplatform/pay without Composer

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

PHP ChainPlatform/Pay – Vietnam QR Pay (VietQR • MoMo • ZaloPay • VNPay)

Được chuyển PHP từ thư viện js của tác giả https://github.com/xuannghia/vietnam-qr-pay

Thư viện PHP hỗ trợ encode & decode mã QR thanh toán theo chuẩn EMVCo dành cho:

Được viết dựa trên chuẩn VietQR và ví dụ từ các ví điện tử Việt Nam.


⚙️ Cài đặt


🧩 Encode – Tạo mã QR

1) VietQR TĨNH (không có số tiền)


2) VietQR ĐỘNG (có số tiền + nội dung)


3) QR Đa năng MoMo

MoMo sử dụng số tài khoản nội bộ tại BVBank để nhận tiền từ VietQR.

Ví dụ output:


4) QR Đa năng ZaloPay

ZaloPay cũng dùng tài khoản BVBank để định tuyến.

Ví dụ output:


5) Tạo QR VNPay

Output mẫu:


🧭 Decode – Phân tích nội dung QR

Decode VietQR


Decode VNPAY


🧱 QRPay Class

Thuộc tính Ý nghĩa
isValid Kiểm tra CRC & chuẩn EMV
initMethod 11 = tĩnh, 12 = động
provider VietQR / VNPAY
merchant Thông tin merchant
consumer Thông tin người trả
amount Số tiền
currency 704 = VND
nation VN
additionalData Thông tin bổ sung
crc Mã checksum
build() Tạo lại QR

Provider

Field Mô tả
guid GUID EMV
name VietQR / VNPay

Merchant

Field Mô tả
id Merchant ID
name Merchant Name

Consumer

Field Mô tả
bankBin Mã BIN
bankNumber STK

Additional Data

Field Mô tả
billNumber Số hóa đơn
mobileNumber SĐT
store Tên cửa hàng
loyaltyNumber Mã khách hàng thân thiết
reference Mã tham chiếu
customerLabel Label
terminal POS
purpose Nội dung

🔧 Build QR mới từ QR cũ


🪪 License

MIT © 2026 Chain Platform


💖 Support & Donate

If you find this package helpful, consider supporting the development:

Cryptocurrency Address
Bitcoin (BTC) 17grbSNSEcEybS1nHh4TGYVodBwT16cWtc

| Ethereum (ETH) | 0xa2fd119a619908d53928e5848b49bf1cc15689d4 | | Tron (TRX) | TYL8p2PLCLDfq3CgGBp58WdUvvg9zsJ8pd | | DOGE (DOGE) | DDfKN2ys4frNaUkvPKcAdfL6SiVss5Bm19 | | USDT (SOLANA) | cPUZsb7T9tMfiZFqXbWbRvrUktxgZQXQ2Ni1HiVXgFm |

Your contribution helps maintain open-source development under the Chain Platform ecosystem 🚀


All versions of pay with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 chainplatform/pay contains the following files

Loading the files please wait ...