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

ActiveLibrary

rabol/laravel-simplesubscription-stripe
=======================================

Get up and running with subscriptions in your Laravel app in minutes instead of days

1.1.2(11mo ago)0798MITPHPPHP ^8.3|^8.4CI failing

Since Aug 16Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/rabol/laravel-simplesubscription-stripe)[ Packagist](https://packagist.org/packages/rabol/laravel-simplesubscription-stripe)[ Docs](https://github.com/rabol/laravel-simplesubscription-stripe)[ GitHub Sponsors](https://github.com/rabol)[ RSS](/packages/rabol-laravel-simplesubscription-stripe/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (12)Versions (13)Used By (0)

Laravel Simple subscription Stripe
==================================

[](#laravel-simple-subscription-stripe)

[![Latest Version on Packagist](https://camo.githubusercontent.com/beb12fb64ce47853194dab42797f9b97b7847e91bea79dcf63b633634911d61b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7261626f6c2f6c61726176656c2d73696d706c65737562736372697074696f6e2d7374726970652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rabol/laravel-simplesubscription-stripe)[![GitHub Tests Action Status](https://camo.githubusercontent.com/320e3c0056346560083cd4e8939b049f6c02f2f04b7306d2654e514b42df1e3b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7261626f6c2f6c61726176656c2d73696d706c65737562736372697074696f6e2d7374726970652f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/rabol/laravel-simplesubscription-stripe/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/238d4acee08f7e73b9e85b6451e0b8b831dc703a6b3e3714d1cb5d25cbf3a9c1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7261626f6c2f6c61726176656c2d73696d706c65737562736372697074696f6e2d7374726970652f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/rabol/laravel-simplesubscription-stripe/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/4c21d46231e267fe005886761f32641d540785f572fd7105a7128ad5d4b3260b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7261626f6c2f6c61726176656c2d73696d706c65737562736372697074696f6e2d7374726970652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rabol/laravel-simplesubscription-stripe)

---

This package is not Laravel Cashier, Laravel Cashier is much more advanced and have several other features. If you want to get up and running with subscriptions and Stripe payments for your Laravel app quickly, then this package is for you.

It only contains 1 migration and a helper class.

Setting up Stripe is out of scope for this package

---

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

[](#installation)

You can install the package via composer:

```
composer require rabol/laravel-simplesubscription-stripe
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="Rabol\LaravelSimpleSubscriptionStripe\LaravelSimpleSubscriptionStripeServiceProvider" --tag="laravel-simplesubscription-stripe-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Rabol\LaravelSimpleSubscriptionStripe\LaravelSimpleSubscriptionStripeServiceProvider" --tag="laravel-simplesubscription-stripe-config"
```

This is the contents of the published config file:

```
return [
    'stripe_key' => env('STRIPE_KEY'),
    'stripe_secret' => env('STRIPE_SECRET'),
    'stripe_webhook_secret' => env('STRIPE_WEBHOOK_SECRET'), // Web hook secret
    'stripe_webhook_tolerance' => env('STRIPE_WEBHOOK_TOLERANCE', 300) // max time diff in webhook signature
];
```

Usage
-----

[](#usage)

Here is a simple example of how to use this package.

```
