PHPackages                             tuyenlaptrinh/perfect-money - 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. tuyenlaptrinh/perfect-money

ActiveLibrary[Payment Processing](/categories/payments)

tuyenlaptrinh/perfect-money
===========================

Laravel Package for Perfect Money Payments

v1.3(4y ago)010MITPHPPHP ^7.1.8 || ^8.0

Since Feb 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tuyenlaptrinh/perfect-money)[ Packagist](https://packagist.org/packages/tuyenlaptrinh/perfect-money)[ Docs](https://github.com/tuyenlaptrinh/perfect-money)[ RSS](/packages/tuyenlaptrinh-perfect-money/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (6)Used By (0)

Laravel Perfect Money
=====================

[](#laravel-perfect-money)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cc1e0eb4b18df0bbaa8d9581da325fe3cc14a1c21bb7d6016efd82b6cd2be64d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f747579656e6c61707472696e682f706572666563742d6d6f6e65792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tuyenlaptrinh/perfect-money)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/aea4275d50bdf50d8aa57af6bf98fe12104657fbfae7ea76267dcd02c21b29f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f747579656e6c61707472696e682f706572666563742d6d6f6e65792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tuyenlaptrinh/perfect-money)

Install
-------

[](#install)

Via Composer

```
$ composer require tuyenlaptrinh/perfect-money
```

Add Provider

```
tuyenlaptrinh\PerfectMoney\PerfectMoneyServiceProvider::class,
```

Add Aliases

```
'PerfectMoney' => tuyenlaptrinh\PerfectMoney\PerfectMoney::class,
```

### Configuration

[](#configuration)

Publish Configuration file

```
php artisan vendor:publish --provider="tuyenlaptrinh\PerfectMoney\PerfectMoneyServiceProvider" --tag="config"

```

Edit .env

Add these lines at .env file, follow config/perfectmoney.php for configuration descriptions.

```
PM_ACCOUNTID=100000
PM_PASSPHRASE=your_pm_password
PM_MARCHANTID=U123456
PM_MARCHANT_NAME="My Company"
PM_UNITS=USD
PM_ALT_PASSPHRASE=your_alt_passphrase
PM_PAYMENT_URL=http://example.com/success
PM_PAYMENT_URL_METHOD=null
PM_NOPAYMENT_URL=http://example.com/fail
PM_NOPAYMENT_URL_METHOD=null
PM_STATUS_URL=null
PM_SUGGESTED_MEMO=null
```

Usage
-----

[](#usage)

\###Render Shopping Cart Input Form

```
PerfectMoney::render();
```

Sometimes you will need to customize the payment form. Just pass the parameters to render method .

```
PerfectMoney::render(['PAYMENT_UNITS' => 'EUR']);
```

API MODULES
-----------

[](#api-modules)

### Get Wallets

[](#get-wallets)

```
$pm = new PerfectMoney;
$wallets = $pm->wallets();

if($wallets['status'] == 'success')
{
    foreach($wallets['wallets'] as $wallet){
        echo $wallet['account'].': '.$wallet['balance']; // U1935xxx: 10.00
    }
}
```

### Send Money

[](#send-money)

```
// Required Fields
$amount = 10.00;
$sendTo = 'U1234567';

// Optional Fields
$description = 'Optional Description for send money';
$payment_id = 'Optional_payment_id';

$pm = new PerfectMoney;

// Send Funds with all fields
$sendMoney = $pm->transfer($sendTo, $amount, $description, $payment_id);
if($sendMoney['status'] == 'success')
{
	// Some code here
}

// Send Funds with required fields
$sendMoney = $pm->transfer($sendTo, $amount);
if($sendMoney['status'] == 'error')
{
	// Payment Failed
	return $sendMoney['message'];
}
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [tuyenlaptrinh](https://github.com/tuyenlaptrinh)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Every ~0 days

Total

5

Last Release

1557d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e0e0f6dc215c0224ae731034c9e03203675be0ebd2c35f52987f29bfb93ff70a?d=identicon)[tuyenlaptrinh](/maintainers/tuyenlaptrinh)

---

Top Contributors

[![tuyenlaptrinh](https://avatars.githubusercontent.com/u/7567800?v=4)](https://github.com/tuyenlaptrinh "tuyenlaptrinh (11 commits)")

---

Tags

laravelperfectmoney

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/tuyenlaptrinh-perfect-money/health.svg)

```
[![Health](https://phpackages.com/badges/tuyenlaptrinh-perfect-money/health.svg)](https://phpackages.com/packages/tuyenlaptrinh-perfect-money)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[aporat/store-receipt-validator

PHP receipt validator for Apple App Store and Amazon Appstore

6503.9M9](/packages/aporat-store-receipt-validator)[laravel/nightwatch

The official Laravel Nightwatch package.

3486.1M13](/packages/laravel-nightwatch)[lemonsqueezy/laravel

A package to easily integrate your Laravel application with Lemon Squeezy.

58596.1k](/packages/lemonsqueezy-laravel)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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