PHPackages                             rashiqulrony/payerurl - 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. rashiqulrony/payerurl

ActivePackage[Payment Processing](/categories/payments)

rashiqulrony/payerurl
=====================

Payerurl Package for laravel

v1.0.2(1y ago)010MITPHPPHP ^7.0|^8.0

Since Apr 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/RashiqulRony/payerurl)[ Packagist](https://packagist.org/packages/rashiqulrony/payerurl)[ RSS](/packages/rashiqulrony-payerurl/feed)WikiDiscussions main Synced 1mo ago

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

PayerURL Laravel Package
========================

[](#payerurl-laravel-package)

[![Latest Stable Version](https://camo.githubusercontent.com/33d2515b6287e449c9e31ba773e43de24eb479afdc93e38f82043310272d7ae4/68747470733a2f2f706f7365722e707567782e6f72672f726173686971756c726f6e792f706179657275726c2f762f737461626c65)](https://packagist.org/packages/rashiqulrony/payerurl)[![Total Downloads](https://camo.githubusercontent.com/4d9fc0b5cfba79c118ec0cf594ea21f9a24e8112399e77ed34535beb18519e0b/68747470733a2f2f706f7365722e707567782e6f72672f726173686971756c726f6e792f706179657275726c2f646f776e6c6f616473)](https://packagist.org/packages/rashiqulrony/payerurl)[![License](https://camo.githubusercontent.com/832978481f59d3cb6b24f7a3bd69cc79843e1efd1b548af8956f0685a57aabf6/68747470733a2f2f706f7365722e707567782e6f72672f726173686971756c726f6e792f706179657275726c2f6c6963656e7365)](https://packagist.org/packages/rashiqulrony/payerurl)

A simple Laravel package for Payerurl payment getaway package.

Installation
------------

[](#installation)

```
composer require rashiqulrony/payerurl
```

#### Publish config file

[](#publish-config-file)

You should publish the config file with:

```
php artisan vendor:publish --provider="Rashiqulrony\Payerurl\Providers\AppServiceProvider" --tag=config

```

In `config/payerurl.php` config file you should set `payerurl` global path.

```
return [
     /*
    |--------------------------------------------------------------------------
    | API URL
    |--------------------------------------------------------------------------
    |
    |
    */

    'api_url' => "https://api-v2.payerurl.com/api/payment",

    /*
    |--------------------------------------------------------------------------
    | PayerUrl API credentials
    |--------------------------------------------------------------------------
    |
    | PayerUrl API credentials
    | Do not share the credentials
    | Get your API key : https://dash.payerurl.com/profile/get-api-credentials
    |
    |
    */

    'public_key' => env('PAYERURL_PUBLIC_KEY'),
    'secret_key' => env('PAYERURL_SECRET_KEY'),
];
```

💳 PayerURL Payment Integration – Laravel
----------------------------------------

[](#-payerurl-payment-integration--laravel)

###### This method allows you to integrate with the PayerURL Payment Gateway using a simple PHP function. It's designed for systems where server-to-server communication is preferred over frontend SDKs.

[](#this-method-allows-you-to-integrate-with-the-payerurl-payment-gateway-using-a-simple-php-function-its-designed-for-systems-where-server-to-server-communication-is-preferred-over-frontend-sdks)

📌 Function: payment($invoiceId, $currency, $data, $orderItems)
--------------------------------------------------------------

[](#-function-paymentinvoiceid-currency-data-orderitems)

###### Handles the payment process with PayerURL API and redirects the customer to the payment page.

[](#handles-the-payment-process-with-payerurl-api-and-redirects-the-customer-to-the-payment-page)

🔑 GET API KEY
-------------

[](#-get-api-key)

Get your API key : [![](https://raw.githubusercontent.com/RashiqulRony/rony.mmj/refs/heads/master/payerurl.png)](https://raw.githubusercontent.com/RashiqulRony/rony.mmj/refs/heads/master/payerurl.png)

### Using .env

[](#using-env)

```
PAYERURL_PUBLIC_KEY="Your_public_key"
PAYERURL_SECRET_KEY="Your_secret_key"

```

✅ Required Parameters
---------------------

[](#-required-parameters)

NameTypeRequiredDescription$invoiceIdstring✅Unique invoice or order ID.$amountint✅Payment amount (in smallest currency unit, e.g., cents).$currencystring❌Currency code (e.g., usd, bdt). Default: usd.$dataarray✅Contains customer info, redirect URLs, and API credentials.🔑 $data Array Structure
-----------------------

[](#-data-array-structure)

```
$data = [
    'first_name'   => 'John',             // Optional
    'last_name'    => 'Doe',              // Optional
    'email'        => 'john@example.com', // Optional
    'redirect_url' => 'https://yourdomain.com/payment-success',
    'notify_url'   => 'https://yourdomain.com/api/payment-notify',
    'cancel_url'   => 'https://yourdomain.com/checkout'
];

// Must be order item is required* and quantity will be minimum 1
$orderItems = [
     [
         'name' => "Order item name",
         'qty' => '2',
         'price' => '100',
     ],
     [
         'name' => "Order item name",
         'qty' => '1',
         'price' => '200',
     ],
]
```

🚀 How It Works
--------------

[](#-how-it-works)

1. Collect user and order info on your platform.
2. Call the payment() function with required details.
3. User is redirected to PayerURL payment page.
4. After payment:
    - User is redirected to redirect\_url.
    - Your backend receives a callback at notify\_url with transaction details.
    - On cancellation, user is returned to cancel\_url.

🧪 Sample Usage
--------------

[](#-sample-usage)

```
use Rashiqulrony\Payerurl\Payerurl;

$invoiceId = rand(0000000, 9999999); // Must be random Invoice ID
$currency = 'usd';
$data = [
    'first_name' => 'Alice',
    'last_name' => 'Smith',
    'email' => 'alice@example.com',
    'redirect_url' => 'https://yoursite.com/payment-success',
    'notify_url' => 'https://yoursite.com/api/payment-notify',
    'cancel_url' => 'https://yoursite.com/cart'
];

// Must be order item is required* and quantity will be minimum 1
$orderItems = [
     [
         'name' => "Order item name",
         'qty' => '2',
         'price' => '100',
     ],
     [
         'name' => "Order item name",
         'qty' => '1',
         'price' => '200',
     ],
]

$response = Payerurl::payment($invoiceId, $currency, $data, $orderItems);
```

🧪 Response
----------

[](#-response)

###### Payment success

[](#payment-success)

```
'status' => true,
'redirectUrl' => "https://dash.payerurl.com/payment/WP112*****", // Payment page URL

```

###### Payment Error

[](#payment-error)

```
'status' => false,
'message' => "Error Message",

```

---

✅ **Done!**
When you push this `README.md` to your GitHub repository, it will show badges immediately!
**No manual update needed** — Packagist will auto-refresh version/downloads after you push tags/releases.

---

Would you also like me to show you **how to make automatic GitHub Actions to update your Packagist on every push** (extra pro setup)? 🚀
👉 (it’s very easy and professional) — just tell me!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance49

Moderate activity, may be stable

Popularity5

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

Every ~0 days

Total

3

Last Release

376d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d301c639370dadda25d65871b9043681d493558350988527101e60948840229?d=identicon)[rashiqulrony](/maintainers/rashiqulrony)

---

Top Contributors

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

---

Tags

RashiqulRonybit coinLaravel PayerurlPayerurlCoin Base

### Embed Badge

![Health badge](/badges/rashiqulrony-payerurl/health.svg)

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

###  Alternatives

[lemonsqueezy/laravel

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

58596.1k](/packages/lemonsqueezy-laravel)[ssheduardo/redsys-laravel

Package redsys for laravel

100129.5k1](/packages/ssheduardo-redsys-laravel)[duncanmcclean/simple-commerce

A simple, yet powerful e-commerce addon for Statamic.

16313.2k2](/packages/duncanmcclean-simple-commerce)[tsaiyihua/laravel-ecpay

ecpay library for laravel

6416.3k](/packages/tsaiyihua-laravel-ecpay)[alifaraun/laravel-moamalat-pay

Easy - Moamalat Lightbox integration for Laravel.

1914.0k](/packages/alifaraun-laravel-moamalat-pay)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

322.8k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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