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)124[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 1w ago

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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

2262d 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

[omnipay/common

Common components for Omnipay payment processing library

35119.0M1.0k](/packages/omnipay-common)[lemonsqueezy/laravel

A package to easily integrate your Laravel application with Lemon Squeezy.

58596.1k](/packages/lemonsqueezy-laravel)[tbbc/money-bundle

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

1961.9M](/packages/tbbc-money-bundle)[mollie/laravel-cashier-mollie

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

172155.4k1](/packages/mollie-laravel-cashier-mollie)[duncanmcclean/simple-commerce

A simple, yet powerful e-commerce addon for Statamic.

16313.2k2](/packages/duncanmcclean-simple-commerce)[jomweb/billplz

PHP Agnostic library for working with BillPlz API

77199.0k3](/packages/jomweb-billplz)

PHPackages © 2026

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