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

ActiveLibrary[API Development](/categories/api)

mohsen-nurisa/perfectmoney-laravel
==================================

perfectmoney api wrapper for Laravel

v1.0(5y ago)3522[1 issues](https://github.com/mohsennrs/perfectmoney-laravel/issues)MITPHPPHP &gt;=7.0.0

Since Oct 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mohsennrs/perfectmoney-laravel)[ Packagist](https://packagist.org/packages/mohsen-nurisa/perfectmoney-laravel)[ RSS](/packages/mohsen-nurisa-perfectmoney-laravel/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

perfectmoney-laravel
====================

[](#perfectmoney-laravel)

A wrapper on perfect-money's API

Installation:

```
composer require mohsen-nurisa/perfectmoney-laravel

```

Usage: After installaion, execute the line below to publish the ServiceProvider and create necessary tables:

```
php artisan vendor:publish
php artisan migrate

```

After publishing the provider, you will need to except the following route in your VerifyCsrfToken middleware:

```
'/pm/status',
'/pm/payment',
'/pm/nopayment',
'/redeem'

```

In order to use perfectmoney payment gateway, put following lines in .env file and fill them with the informations from your own account:

```
PM_PAYEE_ACCOUNT=
ALTERNATIVE_PASSPHRASE=

```

And to use perfectmoney e-voucher redeem, put following lines in .env file and fill them with the informations from your own account:

```
PM_ACCOUNT_ID=
PM_ACCOUNT_PASSWORD=

```

To start perfectmoney payment, add following to you code:

```
use Package\Perfectmoney\Facades\Perfectmoney;

```

Then you can initiate transfere using line below:

```
Perfectmoney::sell($params);

```

The $params variable must contain the following parameters:

```
'payment_amount' => the amount of payment,
'payment_units' => The fiat that you want to use, ex:USD

```

Then attach the form inside 'data' index of the response into your then submit the form. Two callback functions are required to be set in perfectmoney.php file inside config directory. Follow the example below:

```
'pm_success_callback' => 'App\Http\Controllers\PerfectmoneyController::success', // callback function for successfull transfer
'pm_fail_callback' => 'App\Http\Controllers\PerfectmoneyController::fail', // callback function unsuccessfull transfer
'pm_fail_status' => 'App\Http\Controllers\PerfectmoneyController::status', // callback function to handle order status after successfull transfer

```

the 'success' and 'fail' methods must be static.

To redeem e-voucher use following line:

```
Perfectmoney::redeemVoucher($params);

```

$params variable must contain following argumants:

```
'vpm_voucher' => the voucher
'vpm_activation_code' => The activation code

```

Note: To use this wrapper, you first need to enable API in your perfectmoney account. Also you will need to set an Alternative Passphrase.

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

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

2099d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/42294136?v=4)[Mohsen Nurisa](/maintainers/mohsennrs)[@mohsennrs](https://github.com/mohsennrs)

---

Top Contributors

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

---

Tags

perfectmoney

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k16](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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