PHPackages                             msonowal/laravel-razor-pay-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. msonowal/laravel-razor-pay-cashier

ActiveLibrary[Payment Processing](/categories/payments)

msonowal/laravel-razor-pay-cashier
==================================

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

v2.1(3y ago)2625.3k↓50%12[2 issues](https://github.com/msonowal/laravel-razor-pay-cashier/issues)MITPHPPHP &gt;=7.2CI failing

Since Dec 8Pushed 3y ago3 watchersCompare

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

READMEChangelog (10)Dependencies (9)Versions (24)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

39

—

LowBetter than 86% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 88.2% 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 ~129 days

Recently: every ~416 days

Total

14

Last Release

1397d ago

Major Versions

v0.1.1 → v1.0.12017-12-09

v1.0.11 → v2.02021-04-10

PHP version history (2 changes)v1.0.0PHP &gt;=5.5.9

v2.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab0ec80e4e9d7eaeed5b9010e62cf7ce3121f4779870663a253218cfa43f8f7c?d=identicon)[msonowal](/maintainers/msonowal)

---

Top Contributors

[![msonowal](https://avatars.githubusercontent.com/u/6334484?v=4)](https://github.com/msonowal "msonowal (45 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)")

---

Tags

cashierlaravellaravel-cashierrazorpaysubscriptionslaravelbillingsubscriptionrazorpay

### Embed Badge

![Health badge](/badges/msonowal-laravel-razor-pay-cashier/health.svg)

```
[![Health](https://phpackages.com/badges/msonowal-laravel-razor-pay-cashier/health.svg)](https://phpackages.com/packages/msonowal-laravel-razor-pay-cashier)
```

###  Alternatives

[laravel/cashier

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

2.5k25.9M107](/packages/laravel-cashier)[laravel/cashier-paddle

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

264778.4k3](/packages/laravel-cashier-paddle)

PHPackages © 2026

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