PHPackages                             aliromero/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. [API Development](/categories/api)
4. /
5. aliromero/laravel-perfectmoney

ActiveLibrary[API Development](/categories/api)

aliromero/laravel-perfectmoney
==============================

PHP PerfectMoney integration for Laravel

04PHP

Since Apr 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/aliromero/laravel-perfectmoney-master)[ Packagist](https://packagist.org/packages/aliromero/laravel-perfectmoney)[ RSS](/packages/aliromero-laravel-perfectmoney/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel-perfect-money)

[![Latest Version on Packagist](https://camo.githubusercontent.com/10a004564d7cc5b5c0db6661b6df2259dd42f188b173bae15a1d092915d7b0ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c69726f6d65726f2f6c61726176656c2d706572666563746d6f6e65792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aliromero/laravel-perfectmoney)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/1c166c8663ecf902aa88a2e2c799d1429e30ce043ee8515fee269419ebc62c55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c69726f6d65726f2f6c61726176656c2d706572666563746d6f6e65792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aliromero/laravel-perfectmoney)

Install
-------

[](#install)

Via Composer

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

\##Configuration

Publish Configuration file

```
php artisan vendor:publish --provider="Romero\PerfectMoney\ServiceProvider" --tag="perfectmoney-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="Romero\PerfectMoney\ServiceProvider" --tag="perfectmoney-view"

```

### 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'];
}
```

Security
--------

[](#security)

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

License
-------

[](#license)

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

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

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://www.gravatar.com/avatar/107b0dfd4333afce61f6b751c115eebd2d15c68e29c8728d920a83b9b438f3bb?d=identicon)[aliromero](/maintainers/aliromero)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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