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

ActiveLibrary[Payment Processing](/categories/payments)

hackeresq/laravel-stripe
========================

Simple wrapper for the Stripe PHP API which provides a Laravel facade and helper

v0.5(5y ago)122MITPHPPHP &gt;=7.0

Since Feb 26Pushed 3y ago1 watchersCompare

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

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

laravel-stripe
==============

[](#laravel-stripe)

This package is a slim Laravel wrapper around the Stripe PHP SDK. It gives direct access to all of the Stripe PHP SDK methods and properties via a Laravel Facade and helper function.

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

[](#installation)

This package can be used in Laravel 5.4 or higher.

You can install the package via composer:

```
composer require hackeresq/laravel-stripe
```

Optionally, you can set the `services.stripe.secret` in the `service.php` config file that is provided with Laravel, like so:

```
'stripe' => [
    'secret' => env('STRIPE_SECRET'),
]
```

**Success!** laravel-stripe is now installed!

Usage
-----

[](#usage)

Stripe can be accessed using the easy-to-remember Facade, `Stripe` or with the convenient helper `stripe()`. You can also set the secret during runtime with the `setSecretKey()` method.

Example
-------

[](#example)

### Create a payment intent

[](#create-a-payment-intent)

```
    // you can use the global helper function
    $stripe = stripe();

    // or the facade
    $stripe = Stripe::make();

    // get customer payment methods
    $paymentMethods = $stripe->paymentMethods->all([
        'type' => 'card',
        'customer' => 'cus_13374j9a2ff13j0oh8',
    ]);

    // create payment intent
    $paymentIntent = $stripe->paymentIntents->create([
        'amount' => 2000 // amount is in cents (or the lowest denomination of your currency)
        'currency' => 'usd',
        'payment_method_types' => ['card'],
        'customer' => 'cus_13374j9a2ff13j0oh8',
        'metadata' => []
    ]);

    // confirm payment intent
    $paymentIntent = $stripe->paymentIntents->confirm($paymentIntent['id'], [
        'payment_method' => $paymentMethod[0]['id'],
        'setup_future_usage' => 'off_session',
    ]);
```

Finally
-------

[](#finally)

### Testing

[](#testing)

You can run tests with the `composer test` command.

### Contributing

[](#contributing)

Feel free to create a fork and submit a pull request if you would like to contribute.

### Bug reports

[](#bug-reports)

Raise an issue on GitHub if you notice something broken.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~13 days

Total

5

Last Release

1848d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f48c8f47093bb132791728e8c6d1309febbf7db4bf2f648ac38c2ae7cc37b587?d=identicon)[hackerESQ](/maintainers/hackerESQ)

---

Top Contributors

[![hackeresq](https://avatars.githubusercontent.com/u/16628119?v=4)](https://github.com/hackeresq "hackeresq (17 commits)")

---

Tags

laravelstripe

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[simonhamp/laravel-stripe-connect

1343.1k](/packages/simonhamp-laravel-stripe-connect)[lunarphp/stripe

Stripe payment driver for Lunar.

2055.8k4](/packages/lunarphp-stripe)[tomatophp/filament-payments

Manage your payments inside FilamentPHP app with multi payment gateway integration

542.3k](/packages/tomatophp-filament-payments)[andreia/filament-stripe-payment-link

Filament action to generate a Stripe payment link

141.9k](/packages/andreia-filament-stripe-payment-link)

PHPackages © 2026

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