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

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

rap2hpoutre/laravel-stripe-connect
==================================

v0.2.1(8y ago)775.1k53MITPHP

Since Nov 24Pushed 2y ago2 watchersCompare

[ Source](https://github.com/rap2hpoutre/laravel-stripe-connect)[ Packagist](https://packagist.org/packages/rap2hpoutre/laravel-stripe-connect)[ RSS](/packages/rap2hpoutre-laravel-stripe-connect/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (4)Versions (14)Used By (0)

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

[](#laravel-stripe-connect)

![Packagist](https://camo.githubusercontent.com/1815a3efe33d0a07f0da53ef439577635950e86a63ac6b8118360b0bd1eb7b70/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7261703268706f757472652f6c61726176656c2d7374726970652d636f6e6e6563742e737667)[![Packagist](https://camo.githubusercontent.com/0aa971cd414964e62d6f4a2377163d06d70550d293ce9b5a01b04a8efea76dac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7261703268706f757472652f6c61726176656c2d7374726970652d636f6e6e6563742e737667)](https://packagist.org/packages/rap2hpoutre/laravel-stripe-connect)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8437520f0510e53a327f9f3a88e24b89de170c8fc6fa4c38c28e5615ff914944/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7261703268706f757472652f6c61726176656c2d7374726970652d636f6e6e6563742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/rap2hpoutre/laravel-stripe-connect/?branch=master)

2024 Update 🎉
-------------

[](#2024-update-)

[@simonhamp](https://github.com/simonhamp) made a fork: . You should now use this one!

Previous readme
---------------

[](#previous-readme)

⚠️ *Deprecated, then abandoned in 2019, looking for a competitor. See this [reddit post](https://www.reddit.com/r/laravel/comments/avdki2/is_there_an_alternative_to_laravelstripeconnect/).*

> Marketplaces and platforms use Stripe Connect to accept money and pay out to third parties. Connect provides a complete set of building blocks to support virtually any business model, including on-demand businesses, e‑commerce, crowdfunding, fintech, and travel and events.

Create a marketplace application with this helper for [Stripe Connect](https://stripe.com/connect).

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

[](#installation)

Install via composer

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

```

Add your stripe credentials in `.env`:

```
STRIPE_KEY=pk_test_XxxXXxXXX
STRIPE_SECRET=sk_test_XxxXXxXXX

```

Run migrations:

```
php artisan migrate

```

Usage
-----

[](#usage)

You can make a single payment from a user to another user or save a customer card for later use. Just remember to import the base class via:

```
use Rap2hpoutre\LaravelStripeConnect\StripeConnect;
```

### Example #1: direct charge

[](#example-1-direct-charge)

The customer gives his credentials via Stripe Checkout and is charged. It's a one shot process. `$customer` and `$vendor` must be `User` instances. The `$token` must have been created using [Checkout](https://stripe.com/docs/checkout/tutorial) or [Elements](https://stripe.com/docs/stripe-js).

```
StripeConnect::transaction($token)
    ->amount(1000, 'usd')
    ->from($customer)
    ->to($vendor)
    ->create();
```

### Example #2: save a customer then charge later

[](#example-2-save-a-customer-then-charge-later)

Sometimes, you may want to register a card then charge later. First, create the customer.

```
StripeConnect::createCustomer($token, $customer);
```

Then, (later) charge the customer without token.

```
StripeConnect::transaction()
    ->amount(1000, 'usd')
    ->useSavedCustomer()
    ->from($customer)
    ->to($vendor)
    ->create();
```

### Exemple #3: create a vendor account

[](#exemple-3-create-a-vendor-account)

You may want to create the vendor account before charging anybody. Just call `createAccount` with a `User` instance.

```
StripeConnect::createAccount($vendor);
```

### Exemple #4: Charge with application fee

[](#exemple-4-charge-with-application-fee)

```
StripeConnect::transaction($token)
    ->amount(1000, 'usd')
    ->fee(50)
    ->from($customer)
    ->to($vendor)
    ->create();
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 97.1% 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 ~5 days

Total

12

Last Release

3079d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/849c3b70e82874c89e079738e4879e0eabb71d1a73f53e81b88c39a9b40f32ae?d=identicon)[rap2hpoutre](/maintainers/rap2hpoutre)

---

Top Contributors

[![rap2hpoutre](https://avatars.githubusercontent.com/u/1575946?v=4)](https://github.com/rap2hpoutre "rap2hpoutre (33 commits)")[![vool](https://avatars.githubusercontent.com/u/441840?v=4)](https://github.com/vool "vool (1 commits)")

---

Tags

laravelmarketplacepackagistphpphp7stripestripe-connectlaravelstripebilling

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/cashier

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

2.5k28.4M138](/packages/laravel-cashier)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M337](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M23](/packages/yajra-laravel-oci8)[mollie/laravel-cashier-mollie

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

178204.3k1](/packages/mollie-laravel-cashier-mollie)[simonhamp/laravel-stripe-connect

1333.5k](/packages/simonhamp-laravel-stripe-connect)

PHPackages © 2026

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