Download the PHP package laraditz/razorpay without Composer

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

Laravel Curlec by Razorpay

Latest Version on Packagist Total Downloads GitHub Actions

A Laravel wrapper package for the Razorpay Curlec API. Built directly on Laravel's HTTP client, it provides a fluent facade for Payment Links, Orders, Payments, Refunds, and Settlements with database persistence and webhook-driven, event-based sync out of the box.

Features

Requirements

Installation

Install the package via composer:

Publish the configuration and migrations:

Run the migrations:

Add your Razorpay credentials to .env:

Configuration

config/razorpay.php:

Usage

Every service is accessed through the Razorpay facade. Full method reference, parameters, and more examples for each are in Documentation section.

Payment Links

โ†’ Full documentation

Orders

โ†’ Full documentation

Payments

โ†’ Full documentation

Refunds

โ†’ Full documentation

Settlements

โ†’ Full documentation

Querying local records

Every create() call (and, for Payments/Settlements, every fetch()/capture()/update()/all() call too) persists a local Eloquent record, kept in sync automatically as webhooks arrive โ€” no manual polling required:

Error Handling

Every non-2xx API response is caught and rethrown as a package-owned exception โ€” you never need to catch raw HTTP client exceptions:

Webhooks

A webhook route is registered automatically at POST /razorpay/webhook (configurable via RAZORPAY_WEBHOOK_PATH) โ€” never part of Laravel's web middleware group, so the X-Razorpay-Signature header is the sole authentication boundary. Point your Razorpay Dashboard's webhook URL at it and set RAZORPAY_WEBHOOK_SECRET.

Typed events fire for the events this package understands (PaymentLinkPaid, PaymentAuthorized, PaymentCaptured, PaymentFailed, OrderPaid, RefundCreated/Processed/Failed, SettlementProcessed), each keeping the matching local record in sync โ€” plus a generic RazorpayWebhookReceived event for every verified delivery, regardless of type.

โ†’ Full documentation โ€” event reference, listener setup, idempotency notes

Logging

Outbound API calls and inbound webhook deliveries can each be optionally recorded for troubleshooting/audit, independently toggled and retained:

โ†’ Full documentation

Documentation

For detailed documentation on each service, please refer to:

Testing

The test suite uses Http::fake()/Event::fake() throughout โ€” no real network access or live Razorpay credentials are required.

Security

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

License

The MIT License (MIT).


All versions of razorpay with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0|^13.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 laraditz/razorpay contains the following files

Loading the files please wait ...