PHPackages                             renoki-co/thunder - 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. renoki-co/thunder

ActiveLibrary[Payment Processing](/categories/payments)

renoki-co/thunder
=================

Thunder is an advanced Laravel tool to track user consumption using Cashier's Metered Billing for Stripe. ⚡

0.2.0(4y ago)1341[3 issues](https://github.com/renoki-co/thunder/issues)[3 PRs](https://github.com/renoki-co/thunder/pulls)Apache-2.0PHPPHP ^8.0

Since Nov 8Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/renoki-co/thunder)[ Packagist](https://packagist.org/packages/renoki-co/thunder)[ Docs](https://github.com/renoki-co/thunder)[ GitHub Sponsors](https://github.com/rennokki)[ RSS](/packages/renoki-co-thunder/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (7)Versions (8)Used By (0)

⚡ Thunder
=========

[](#-thunder)

[![CI](https://github.com/renoki-co/thunder/workflows/CI/badge.svg?branch=master)](https://github.com/renoki-co/thunder/workflows/CI/badge.svg?branch=master)[![codecov](https://camo.githubusercontent.com/ae83615e5ef30c02d6cd068cb05ffb8e19991591d302c430c5b93810617e7856/68747470733a2f2f636f6465636f762e696f2f67682f72656e6f6b692d636f2f7468756e6465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/renoki-co/thunder/branch/master)[![StyleCI](https://camo.githubusercontent.com/0e7e4ada74a0ce646e9a1a2385f5f9351f8111070d17f75a61f2b62dee7e8c63/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3432353535353137342f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/425555174)[![Latest Stable Version](https://camo.githubusercontent.com/7c9307215a149da6f9f18c9068feec1ff1ba97b4a0812e3f9d70aeadc9677c79/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f7468756e6465722f762f737461626c65)](https://packagist.org/packages/renoki-co/thunder)[![Total Downloads](https://camo.githubusercontent.com/56d15af17e47ed282db3cdc2f056f21d031762cf459d1f99bb2b9d099453a623/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f7468756e6465722f646f776e6c6f616473)](https://packagist.org/packages/renoki-co/thunder)[![Monthly Downloads](https://camo.githubusercontent.com/ef996c2f0ed21e163b83776e08c365913da710975390245e72814800756ad686/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f7468756e6465722f642f6d6f6e74686c79)](https://packagist.org/packages/renoki-co/thunder)[![License](https://camo.githubusercontent.com/9764e154f07dc88dbc445b6304f2b03fab942345c326a8b68f334f9815bc22b7/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f7468756e6465722f6c6963656e7365)](https://packagist.org/packages/renoki-co/thunder)

Thunder is an advanced Laravel tool to track user consumption using Cashier's Metered Billing for Stripe. ⚡

🤝 Supporting
------------

[](#-supporting)

**If you are using one or more Renoki Co. open-source packages in your production apps, in presentation demos, hobby projects, school projects or so, sponsor our work with [Github Sponsors](https://github.com/sponsors/rennokki). 📦**

[![](https://camo.githubusercontent.com/58f1e8f34f76ee82e242cfbab22f17dcc575926ffae5dc5534bccdf8afc7412b/68747470733a2f2f6769746875622d636f6e74656e742e73332e66722d7061722e7363772e636c6f75642f7374617469632f34352e6a7067)](https://github-content.renoki.org/github-repo/45)

🚀 Installation
--------------

[](#-installation)

You can install the package via composer:

```
composer require renoki-co/thunder
```

This project comes with Cashier, and it's really important [to install it](https://laravel.com/docs/8.x/billing#installation) before diving in the documentation.

🙌 Usage
-------

[](#-usage)

Thunder tracks resources quotas for your users via Stripe Metered Billing.

You may only define plans with certain features that are connected to Stripe by IDs, declaring them only once throughout your code.

Reporting the usages is done with the IDs you define instead of unique pricing IDs that are different for each environment your deploy your app in, making it consistent throughout the code.

This way, you can call usage reports just like [Cashier's Metered Billing](https://laravel.com/docs/8.x/billing#metered-billing), but instead of using the Stripe IDs, you are using the defined IDs:

```
use RenokiCo\Thunder\Thunder;

Thunder::plan('Unlimited Plan', 'stripe_product_id', [
    Thunder::meteredFeature('Build Minutes', 'build.minutes', 'stripe_build_minutes_price_id'),
    Thunder::meteredFeature('Seats', 'seats', 'stripe_seats_price_id'),
]);

$subscription = $user->subscription('main');

Thunder::reportUsageFor('build.minutes', $subscription, 50);
Thunder::reportUsageFor('build.minutes', $subscription, 100);

Thunder::usage('build.minutes', $subscription); // 150
```

🐛 Testing
---------

[](#-testing)

```
vendor/bin/phpunit
```

🤝 Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

🔒 Security
----------

[](#--security)

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

🎉 Credits
---------

[](#-credits)

- [Alex Renoki](https://github.com/rennokki)
- [All Contributors](../../contributors)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance49

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

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

2

Last Release

1651d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21983456?v=4)[rennokki](/maintainers/rennokki)[@rennokki](https://github.com/rennokki)

---

Top Contributors

[![rennokki](https://avatars.githubusercontent.com/u/21983456?v=4)](https://github.com/rennokki "rennokki (53 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (19 commits)")

---

Tags

billingcashierlaravelsaassparkstripethunderphplaravelstripebillingsaascashierthunder

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/renoki-co-thunder/health.svg)

```
[![Health](https://phpackages.com/badges/renoki-co-thunder/health.svg)](https://phpackages.com/packages/renoki-co-thunder)
```

###  Alternatives

[mmanos/laravel-billing

A billing package for Laravel 4.

451.3k](/packages/mmanos-laravel-billing)[tomatophp/filament-payments

Manage your payments inside FilamentPHP app with multi payment gateway integration

542.3k](/packages/tomatophp-filament-payments)[helori/laravel-saas

Software as a Service scaffholding for Laravel based on Vue 3, Tailwindcss and Stripe. Inspired by Laravel Jetstream and Spark.

121.3k](/packages/helori-laravel-saas)

PHPackages © 2026

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