PHPackages                             technocrats/laravel-perfectmoney - 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. technocrats/laravel-perfectmoney

ActiveLibrary[Payment Processing](/categories/payments)

technocrats/laravel-perfectmoney
================================

Laravel Package for Perfect Money Payments

033PHP

Since Sep 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/webexpert889/laravel-perfect-money)[ Packagist](https://packagist.org/packages/technocrats/laravel-perfectmoney)[ RSS](/packages/technocrats-laravel-perfectmoney/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel-perfect-money)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d4d5c6351ba77ac93f499e80f71290c77078e38ecb84b0062aa33292b47cb46f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636861726c65736173736574732f6c61726176656c2d706572666563746d6f6e65792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/charlesassets/laravel-perfectmoney)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/2362a1a7bd4f54dbc62b13deb20c76dbcc6c6c65bd1eef3114787dbdb657bcb7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636861726c65736173736574732f6c61726176656c2d706572666563746d6f6e65792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/charlesassets/laravel-perfectmoney)

Install
-------

[](#install)

Via Composer

```
$ composer require technocrats/laravel-perfectmoney
```

Add Provider

```
charlesassets\LaravelPerfectMoney\LaravelPerfectMoneyServiceProvider::class,
```

Add Aliases

```
'PerfectMoney' => charlesassets\LaravelPerfectMoney\PerfectMoney::class,
```

\##Configuration

Publish Configuration file

```
php artisan vendor:publish --provider="charlesassets\LaravelPerfectMoney\LaravelPerfectMoneyServiceProvider" --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
```

\##Customizing views (Optional)

If you want to customize form, follow these steps.

### 1.Publish view

[](#1publish-view)

```
php artisan vendor:publish --provider="charlesassets\LaravelPerfectMoney\LaravelPerfectMoneyServiceProvider" --tag="views"

```

### 2.Edit your view at /resources/views/vendor/perfectmoney/perfectmoney.php

[](#2edit-your-view-at-resourcesviewsvendorperfectmoneyperfectmoneyphp)

Usage
-----

[](#usage)

\###Render Shopping Cart Form

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

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

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

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

[](#api-modules)

### Get Balance

[](#get-balance)

```
$pm = new PerfectMoney;
$balance = $pm->getBalance();

if($balance['status'] == 'success')
{
	return $balance['USD'];
}
```

### 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->getBalance($amount, $sendTo, $description, $payment_id);
if($sendMoney['status'] == 'success')
{
	// Some code here
}

// Send Funds with required fields
$sendMoney = $pm->getBalance($amount, $sendTo);
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)

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

License
-------

[](#license)

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

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34155532?v=4)[WebExpert](/maintainers/webexpert889)[@webexpert889](https://github.com/webexpert889)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/technocrats-laravel-perfectmoney/health.svg)

```
[![Health](https://phpackages.com/badges/technocrats-laravel-perfectmoney/health.svg)](https://phpackages.com/packages/technocrats-laravel-perfectmoney)
```

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.1k](/packages/msilabs-bkash)

PHPackages © 2026

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