Download the PHP package rashiqulrony/payerurl without Composer

On this page you can find all versions of the php package rashiqulrony/payerurl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package payerurl

PayerURL Laravel Package

Latest Stable Version Total Downloads License

A simple Laravel package for Payerurl payment getaway package.

Installation

Publish config file

You should publish the config file with:

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

πŸ’³ 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.

πŸ“Œ Function: payment($invoiceId, $currency, $data, $orderItems)

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

πŸ”‘ GET API KEY

Get your API key : https://dash.payerurl.com/profile/get-api-credentials

Using .env

βœ… Required Parameters

Name Type Required Description
$invoiceId string βœ… Unique invoice or order ID.
$amount int βœ… Payment amount (in smallest currency unit, e.g., cents).
$currency string ❌ Currency code (e.g., usd, bdt). Default: usd.
$data array βœ… Contains customer info, redirect URLs, and API credentials.

πŸ”‘ $data Array Structure

$data = [
    'first_name'   => 'John',             // Optional
    'last_name'    => 'Doe',              // Optional
    'email'        => '[email protected]', // 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

  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

use Rashiqulrony\Payerurl\Payerurl;

$invoiceId = rand(0000000, 9999999); // Must be random Invoice ID
$currency = 'usd';
$data = [
    'first_name' => 'Alice',
    'last_name' => 'Smith',
    'email' => '[email protected]',
    '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

Payment success
'status' => true,
'redirectUrl' => "https://dash.payerurl.com/payment/WP112*****", // Payment page URL
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!


All versions of payerurl with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0|^8.0
laravel/framework Version ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rashiqulrony/payerurl contains the following files

Loading the files please wait ....