PHPackages                             heinzawhtet/myanpay - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. heinzawhtet/myanpay

ActiveLibrary[Payment Processing](/categories/payments)

heinzawhtet/myanpay
===================

PHP Package for MyanPay

0.1.x-dev(11y ago)557PHPPHP &gt;=5.3.0

Since Dec 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/HeinZawHtet/MyanPay)[ Packagist](https://packagist.org/packages/heinzawhtet/myanpay)[ Docs](http://heinzawhtet.com/myanpay)[ RSS](/packages/heinzawhtet-myanpay/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

MyanPay PHP Package
===================

[](#myanpay-php-package)

MyanPay integration for PHP with easy.

Install
-------

[](#install)

You can install this package in two ways.

via Composer PHP (Recommended)
------------------------------

[](#via-composer-php-recommended)

Require this package via terminal

```
composer require heinzawhtet/myanpay
```

Or just require this package in composer.json and run `composer update`

```
{
    "require": {
        "heinzawhtet/myanpay": "dev-master"
    }
}
```

Quick Start
-----------

[](#quick-start)

First set your MyanPay API credentials and request to server.

```
	$items = [
		[
			'number' 	=> 'P001',
			'name' 		=> 'A pecial Birthday',
			'ammount'	=> '1000',
			'quantity'	=> '1',
			'desc'		=> 'Hi Hi'
		],
		[
			'number' 	=> 'P002',
			'name' 		=> 'Spray oses',
			'ammount'	=> '1000',
			'quantity'	=> '1',
			'desc'		=> 'Hi Hi'
		],
	];

	$pay = new Heinzawhtet\Myanpay\Myanpay;

	$pay->setApiUsername('API_USERNAME');
	$pay->setApiPassword('API_PASSWORD');
	$pay->setApiSignature('API_SIGNATURE');
	$pay->setDev(true); // if you are on development

	$pay->setHeaderImg('YOUR_BRAND_IMG_PATH');
	$pay->setCustomerServiceNumber('09 12345678');
	$pay->setBrandName('YOUR_STORE_NAME');

	$pay->setReturnUrl('http://localhost:1200/return'); // Return Url when payment is ready to complete
	$pay->setCancelUrl('http://localhost:1200/cancel'); // Cancel Url when payment is canceled

	return $pay->purchase(array( 'amount' => '2000' , 'items' => $items));
```

And then complete the purchase

```
	$pay = new Heinzawhtet\Myanpay\Myanpay;

	$pay->setApiUsername('_junio7482443442_myanpayAPI');
	$pay->setApiPassword('Z687FL3W036I06D0');
	$pay->setApiSignature('b98qL7734zo0Fw50mFP4u55p583bkLz44ZY524EMe5rO7hfdzlWq5AN2rx8d');

	$pay->setDev(true);

	$com = $pay->completePurchase(); // complete the purchase
	$detail = $pay->fetchDetail(); // fetch payment details such as buyer's email or shipping address
```

More detail documentation, comming soon.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4223d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1665a6fa92796338e0947638deaabe5183b4ddf61c81fe38a64c7150c8b5e0dd?d=identicon)[HeinZawHtet](/maintainers/HeinZawHtet)

---

Top Contributors

[![heinafk](https://avatars.githubusercontent.com/u/1264755?v=4)](https://github.com/heinafk "heinafk (12 commits)")

---

Tags

myanpaypaymentphppaymentmyanpay

### Embed Badge

![Health badge](/badges/heinzawhtet-myanpay/health.svg)

```
[![Health](https://phpackages.com/badges/heinzawhtet-myanpay/health.svg)](https://phpackages.com/packages/heinzawhtet-myanpay)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[omnipay/common

Common components for Omnipay payment processing library

34220.2M1.1k](/packages/omnipay-common)[jms/payment-core-bundle

A unified API for processing payments with Symfony

195748.4k36](/packages/jms-payment-core-bundle)[api-platform/http-cache

API Platform HttpCache component

274.6M20](/packages/api-platform-http-cache)[jms/payment-paypal-bundle

Payment Bundle providing access to the PayPal API

126409.6k1](/packages/jms-payment-paypal-bundle)[paymentsuite/stripe-bundle

Stripe PaymentSuite Component

115.0k](/packages/paymentsuite-stripe-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
