PHPackages                             plusinfolab/razorpay-cashier - 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. plusinfolab/razorpay-cashier

ActiveLibrary[Payment Processing](/categories/payments)

plusinfolab/razorpay-cashier
============================

Laravel Cashier provides an expressive, fluent interface to Razorpay's subscription billing services.

v1.3(1y ago)034MITPHPPHP &gt;=8.0

Since Jan 21Pushed 3mo agoCompare

[ Source](https://github.com/plusinfolab/razorpay-cashier)[ Packagist](https://packagist.org/packages/plusinfolab/razorpay-cashier)[ RSS](/packages/plusinfolab-razorpay-cashier/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (4)Used By (0)

Laravel Razorpay Cashier
------------------------

[](#laravel-razorpay-cashier)

[![StlyeCI](https://camo.githubusercontent.com/2b5e13c9d2428cebe0d13d3b60f32d0272573258a63acdfcc24a9bcc53a15ee9/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131333630373236392f736869656c64)](https://styleci.io/repos/113607269)[![Latest Stable Version](https://camo.githubusercontent.com/e65f217aa4a65d0fd4d5bfedfc4bf9855f15237a7b24d0794336b1def6185945/68747470733a2f2f706f7365722e707567782e6f72672f6d736f6e6f77616c2f6c61726176656c2d72617a6f722d7061792d636173686965722f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/msonowal/laravel-razor-pay-cashier)[![License](https://camo.githubusercontent.com/dc01805c07e61ea8c5bb3e477d1294d752ed35b8388a1cec7433681ae961dff7/68747470733a2f2f706f7365722e707567782e6f72672f6d736f6e6f77616c2f6c61726176656c2d72617a6f722d7061792d636173686965722f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/msonowal/laravel-razor-pay-cashier)[![Total Downloads](https://camo.githubusercontent.com/569e8984acac461cc82816fc5fce17c15a44f9fbee023a9c6c3490425b84c6aa/68747470733a2f2f706f7365722e707567782e6f72672f6d736f6e6f77616c2f6c61726176656c2d72617a6f722d7061792d636173686965722f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/msonowal/laravel-razor-pay-cashier)[![Monthly Downloads](https://camo.githubusercontent.com/f09f9c67b257d3cf23a2d734114b953179a9e524fc37b3bf72e51a955c378d1c/68747470733a2f2f706f7365722e707567782e6f72672f6d736f6e6f77616c2f6c61726176656c2d72617a6f722d7061792d636173686965722f642f6d6f6e74686c793f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/msonowal/laravel-razor-pay-cashier)[![Daily Downloads](https://camo.githubusercontent.com/d6a0976d8ce97be92ecee0038b81a3dc5c35ea471a6c7abf09dd222f790ff6de/68747470733a2f2f706f7365722e707567782e6f72672f6d736f6e6f77616c2f6c61726176656c2d72617a6f722d7061792d636173686965722f642f6461696c793f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/msonowal/laravel-razor-pay-cashier)[![HitCount](https://camo.githubusercontent.com/ba206f283b4e7a4253f38c5cdb9c9222c8393fbdcd0676fec21bee6b86515ab9/687474703a2f2f686974732e6477796c2e696f2f6d736f6e6f77616c2f6c61726176656c2d72617a6f727061792d636173686965722e737667)](http://hits.dwyl.io/msonowal/laravel-razorpay-cashier)

Introduction
------------

[](#introduction)

Laravel Cashier inspired Razorpay Cashier provides an expressive, fluent interface to [Razorpay's](https://razorpay.com) subscription billing services. It handles almost all of the boilerplate subscription billing code you are dreading writing. In addition to basic subscription management, Cashier can handle subscription "quantities", cancellation grace periods.

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

[](#installation)

`composer require "msonowal/laravel-razor-pay-cashier"`

Next, register the service provider in your `config/app.php` configuration file.

`Msonowal\Razorpay\Cashier\CashierServiceProvider`

### Environment Configurations

[](#environment-configurations)

define these keys in `config/services.php`

```
'razorpay' => [
    'model'     =>  App\Models\User::class,
    'key'       =>  env('RAZORPAY_KEY'),
    'secret'    =>  env('RAZORPAY_SECRET'),
],

```

This will register a singleton which can be resolved by using `razorpay` as a resolver

Official Documentation
----------------------

[](#official-documentation)

TODO Documentation For time being you can follow laravel cashier's documentation for implementaion, and apis I have kept almost same signature with modifications to razorpay

#### .env

[](#env)

```
RAZORPAY_KEY=
RAZORPAY_SECRET=
RAZORPAY_MODEL=

```

Running Cashier's Tests Locally
-------------------------------

[](#running-cashiers-tests-locally)

TODO Add Invoicing generating PDF based on line items in application side

Contributing
------------

[](#contributing)

Thank you for considering contributing to the Cashier. You can read the contribution guide lines [here](contributing.md).

License
-------

[](#license)

Laravel Cashier is open-sourced software licensed under the [MIT license](LICENSE.txt).

Found any bugs? or improvement open an issue or send me a PR
============================================================

[](#found-any-bugs-or-improvement-open-an-issue-or-send-me-a-pr)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance64

Regular maintenance activity

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.3% 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

476d ago

PHP version history (2 changes)v1.0PHP &gt;=7.2

v1.3PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5704ae6235da3734f84e8db1db6e2e10a1a697dfde3643939386e7ccb374a795?d=identicon)[amjpdevp](/maintainers/amjpdevp)

---

Top Contributors

[![msonowal](https://avatars.githubusercontent.com/u/6334484?v=4)](https://github.com/msonowal "msonowal (45 commits)")[![amjpdevp](https://avatars.githubusercontent.com/u/113779419?v=4)](https://github.com/amjpdevp "amjpdevp (7 commits)")[![bhavinjr](https://avatars.githubusercontent.com/u/30195960?v=4)](https://github.com/bhavinjr "bhavinjr (5 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![dev-acharya](https://avatars.githubusercontent.com/u/185913714?v=4)](https://github.com/dev-acharya "dev-acharya (1 commits)")

---

Tags

laravelbillingsubscriptionrazorpay

### Embed Badge

![Health badge](/badges/plusinfolab-razorpay-cashier/health.svg)

```
[![Health](https://phpackages.com/badges/plusinfolab-razorpay-cashier/health.svg)](https://phpackages.com/packages/plusinfolab-razorpay-cashier)
```

###  Alternatives

[msonowal/laravel-razor-pay-cashier

Laravel Cashier provides an expressive, fluent interface to Razorpay's subscription billing services.

2625.3k](/packages/msonowal-laravel-razor-pay-cashier)[danestves/laravel-polar

A package to easily integrate your Laravel application with Polar.sh

7812.3k](/packages/danestves-laravel-polar)

PHPackages © 2026

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