PHPackages                             randomstate/mint - 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. randomstate/mint

ActiveLibrary[Payment Processing](/categories/payments)

randomstate/mint
================

Boilerplate billing integration for Laravel &amp; Stripe

v0.2.1(6y ago)224[3 PRs](https://github.com/randomstate/mint/pulls)MITPHP

Since Feb 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/randomstate/mint)[ Packagist](https://packagist.org/packages/randomstate/mint)[ RSS](/packages/randomstate-mint/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (6)Versions (8)Used By (0)

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

[](#introduction)

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

[](#installation)

Require the library using composer:

```
composer require randomstate/mint

```

Database Migrations
-------------------

[](#database-migrations)

Mint provides migrations for the models it uses out of the box. These are automatically registered with laravel. You will need to run `php artisan migrate` to initialize these tables.

The library assumes your application uses a `users` table that should contain the Stripe customer ID. If you need to customize this, please publish the migrations first.

```
php artisan vendor:publish

```

Configuration
-------------

[](#configuration)

### Billable Model

[](#billable-model)

Add the Mint Billable trait to your User model. This will give it access to the fluent interface Mint provides on each customer. If you are charging organisations or teams, publish &amp; customize the customer migration to point to the appropriate table, and add the Billable trait to your org/team model.

```
use RandomState\Mint\Mint\Billable;

class User extends Authenticatable
{
    use Billable;
}
```

### API Keys

[](#api-keys)

Add your Stripe API Keys to your .env file:

```
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~4 days

Total

4

Last Release

2353d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1204796510f0f912ac6f85359e20efbc78e573c00c742a3a53f509f3abdc7f9f?d=identicon)[CImrie](/maintainers/CImrie)

---

Top Contributors

[![byfoz](https://avatars.githubusercontent.com/u/3436576?v=4)](https://github.com/byfoz "byfoz (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/randomstate-mint/health.svg)

```
[![Health](https://phpackages.com/badges/randomstate-mint/health.svg)](https://phpackages.com/packages/randomstate-mint)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)[laravel/cashier

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

2.6k31.8M160](/packages/laravel-cashier)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)[craftcms/commerce

Craft Commerce

240429.5k211](/packages/craftcms-commerce)[mollie/laravel-cashier-mollie

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

179223.2k1](/packages/mollie-laravel-cashier-mollie)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1962.0M](/packages/tbbc-money-bundle)

PHPackages © 2026

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