Download the PHP package sarfarazstark/laravel-payu without Composer

On this page you can find all versions of the php package sarfarazstark/laravel-payu. 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 laravel-payu

Laravel PayU Package

A comprehensive Laravel package for integrating PayU payment gateway with complete database transaction tracking, webhook handling, and advanced payment management features.

โœจ Features

๐Ÿ“ฆ Installation

1. Install via Composer

2. Publish Configuration, Migrations & Models

๐Ÿ’ก Note: Publishing models is optional. You can work with the PayU transactions, refunds, and webhooks using the package's built-in models (SarfarazStark\LaravelPayU\Models\*). However, if you want to customize the models or add additional relationships in your application, publish them to your app/Models directory.

3. Working with Published Models

Once you publish the models with php artisan vendor:publish --tag=payu-models, you'll have three Eloquent models in your app/Models directory:

PayUTransaction Model

PayURefund Model

PayUWebhook Model

Example usage with published models:

3. Environment Configuration

Add your PayU credentials to .env:

โš ๏ธ Important: The PAYU_SUCCESS_URL and PAYU_FAILURE_URL are required. If not set in your .env file, you must pass surl and furl parameters when calling payment methods, otherwise an InvalidArgumentException will be thrown.

๐Ÿ—„๏ธ Database Schema

The package creates three optimized database tables:

PayU Transactions (payu_transactions)

PayU Refunds (payu_refunds)

PayU Webhooks (payu_webhooks)

๐Ÿš€ Quick Start Guide

Basic Payment Integration

Payment Response Handling

๐Ÿ”ง Advanced Usage

Working with Eloquent Models

Transaction Management

Refund Management

Webhook Handling

Using Available Enum Constants

๐Ÿ”Œ Complete PayU API Integration

Payment Operations

Refund Operations

EMI & Card Operations

UPI & Banking Operations

Invoice Operations

๐Ÿ“Š Reporting & Analytics

Transaction Analytics

Refund Analytics

๐Ÿงช Testing

The package includes comprehensive unit tests covering all functionality:

Writing Custom Tests

๐Ÿ”’ Security Best Practices

Hash Verification

Environment Configuration

Database Security

๐Ÿš€ Production Deployment

Performance Optimization

Monitoring & Logging

๐Ÿค Contributing

We welcome contributions! Please see our contributing guidelines for details.

Development Setup

๐Ÿ“š API Documentation

For detailed API documentation and parameter requirements, see the doc/ folder:

๐Ÿ“„ License

This package is open-sourced software licensed under the MIT License.

๐Ÿ’ฌ Support


Made with โค๏ธ by Sarfaraz Stark


All versions of laravel-payu with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
illuminate/support Version >=5.7
ext-curl Version *
ext-json Version *
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 sarfarazstark/laravel-payu contains the following files

Loading the files please wait ....