PHPackages                             mrthito/laravel-stripe-connect - 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. mrthito/laravel-stripe-connect

ActiveLibrary[Payment Processing](/categories/payments)

mrthito/laravel-stripe-connect
==============================

Stripe Connect onboarding and transfers for Laravel 13

1.0.3(1mo ago)026MITPHPPHP ^8.3CI passing

Since Jul 27Pushed 1mo agoCompare

[ Source](https://github.com/mrthito/laravel-stripe-connect)[ Packagist](https://packagist.org/packages/mrthito/laravel-stripe-connect)[ GitHub Sponsors](https://github.com/MrThito)[ RSS](/packages/mrthito-laravel-stripe-connect/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (13)Versions (6)Used By (0)

Laravel Stripe Connect
======================

[](#laravel-stripe-connect)

This is a maintained fork of [rap2hpoutre/laravel-stripe-connect](https://github.com/rap2hpoutre/laravel-stripe-connect)by Raphaël Huchet ([@rap2hpoutre](https://github.com/rap2hpoutre)) and later by [Simon Hamp](https://github.com/simonhamp).

With Laravel Stripe Connect, you can start your own marketplace platform using [Stripe Connect](https://stripe.com/connect)which allows you to make transfers to your recipients directly from your Stripe account to theirs.

Laravel Stripe Connect provides a starting point to help you get your users set up and connected to your Stripe account and start making payouts in no time.

Requirements
------------

[](#requirements)

- PHP 8.3+
- Laravel 13.x

Testing
-------

[](#testing)

This package uses [Pest](https://pestphp.com/). Run the suite with:

```
composer test

```

Security
--------

[](#security)

Production deployments should follow [SECURITY.md](SECURITY.md). At minimum:

- Implement `MrThito\LaravelStripeConnect\Contracts\Payable` on your user (or recipient) model and use the `Payable` trait
- Do not expose `StripeConnectAccount` to untrusted mass assignment
- Authorize payouts and account creation in your own policies
- Publish config and review `security.*` allowlists

Tip

This package assumes that your `User` model is what will represent recipients of transfers from your platform, however this can be changed.

Note

Upgrading from Laravel 10–12? See [UPGRADE.md](UPGRADE.md).

Sponsorship
-----------

[](#sponsorship)

Laravel Stripe Connect is completely free to use for personal or commercial use. If it's making your job easier or you just want to make sure it keeps being supported and improved, I'd really appreciate your donations!

[Donate now](https://buymemomo.com/rijal)

Thank you 🙏

Sponsors
--------

[](#sponsors)

[Laradir](https://laradir.com/?ref=laravel-stripe-connect-github) - Connecting the best Laravel Developers with the best Laravel Teams.
[quantumweb](https://quantumweb.co/?ref=mrthito/laravel-stripe-connect-github) - A bare-metal web agency. Less layers, better results.
[RedGalaxy](https://www.redgalaxy.co.uk) - A web application development studio based in Cambridgeshire, building solutions to help businesses improve efficiency and profitability.
[Sevalla](https://sevalla.com/?utm_source=nativephp&utm_medium=Referral&utm_campaign=homepage) - Host and manage your applications, databases, and static sites in a single, intuitive platform.

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

[](#installation)

Install via Composer:

```
composer require mrthito/laravel-stripe-connect

```

Add your Stripe credentials in `.env`:

```
STRIPE_KEY=pk_test_XxxXXxXXX
STRIPE_SECRET=sk_test_XxxXXxXXX

```

Publish config (recommended) and the migration stub (**required** — the package does not auto-run its own migration so you can customize the schema):

```
php artisan vendor:publish --tag=stripe-connect-config
php artisan vendor:publish --tag=stripe-connect-migrations
php artisan migrate

```

Note

Only a **publishable stub** ships with this package (no duplicate hidden migration). See [CUSTOMIZATION.md](CUSTOMIZATION.md) for table names, custom models, and extra columns.

Customization
-------------

[](#customization)

See [CUSTOMIZATION.md](CUSTOMIZATION.md) for table names, custom `StripeConnectAccount` models, morph names, disabling routes, and security allowlists.

Usage
-----

[](#usage)

Add the `Payable` trait to any model that you consider to represent your recipient.

```
use MrThito\LaravelStripeConnect\Contracts\Payable as PayableContract;
use MrThito\LaravelStripeConnect\Traits\Payable;

class User extends Model implements PayableContract
{
    use Payable;
}
```

The same trait works on any model (`Team`, `Seller`, etc.). Stripe credentials are stored on the `stripe_connect_accounts` table via a `morphOne` relation — no extra columns on your models.

Then you can use the convenient methods available to get your recipients to set up or connect their Stripe account to your platform.

Here's an example route that will get your user to go through the Stripe Connect onboarding flow:

```
Route::get('/connect', function () {
    if (! auth()->user()->getStripeAccountId()) {
        auth()->user()->createStripeAccount(['type' => 'express']);
    }

    if (! auth()->user()->isStripeAccountActive()) {
        return redirect(auth()->user()->getStripeAccountLink());
    }

    return redirect('dashboard');
})->middleware(['auth']);
```

Once a user's Stripe account is all connected and active, you can start creating transfers:

```
auth()->user()->transfer(10000, 'usd');
```

Note

Stripe expects amounts in the smallest denomination for the currency (in this case, cents), so the above is a transfer of US$100 to the logged in user.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance91

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~99 days

Total

4

Last Release

44d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49310993?v=4)[Prashant Rijal](/maintainers/mrthito)[@mrthito](https://github.com/mrthito)

---

Top Contributors

[![rap2hpoutre](https://avatars.githubusercontent.com/u/1575946?v=4)](https://github.com/rap2hpoutre "rap2hpoutre (32 commits)")[![simonhamp](https://avatars.githubusercontent.com/u/31628?v=4)](https://github.com/simonhamp "simonhamp (21 commits)")[![mrthito](https://avatars.githubusercontent.com/u/49310993?v=4)](https://github.com/mrthito "mrthito (11 commits)")[![arthurnassar](https://avatars.githubusercontent.com/u/98289378?v=4)](https://github.com/arthurnassar "arthurnassar (2 commits)")[![vool](https://avatars.githubusercontent.com/u/441840?v=4)](https://github.com/vool "vool (1 commits)")

---

Tags

laravelstripebillingmarketplacestripe-connect

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mrthito-laravel-stripe-connect/health.svg)

```
[![Health](https://phpackages.com/badges/mrthito-laravel-stripe-connect/health.svg)](https://phpackages.com/packages/mrthito-laravel-stripe-connect)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/cashier

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

2.6k29.9M148](/packages/laravel-cashier)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)

PHPackages © 2026

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