PHPackages                             beksos/laravel-subscriptions - 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. beksos/laravel-subscriptions

ActiveLibrary[Payment Processing](/categories/payments)

beksos/laravel-subscriptions
============================

A simple package for subscriptions

030PHP

Since Jun 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/BechirAhmed/laravel-subscriptions)[ Packagist](https://packagist.org/packages/beksos/laravel-subscriptions)[ RSS](/packages/beksos-laravel-subscriptions/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Subscriptions
=====================

[](#laravel-subscriptions)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1f84f93118fce7f950fa12d54d77d4f5b83af4ae3ad89ce9119596b844d5319e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62656b736f732f6c61726176656c2d737562736372697074696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beksos/laravel-subscriptions)[![StyleCI](https://camo.githubusercontent.com/54a1db39817d94790c83eb2b2947253cea1a5df121aac30bee2bbe4306e5fbd5/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3231373634363934362f736869656c64)](https://github.styleci.io/repos/217646946)[![Build Status](https://camo.githubusercontent.com/3f1ea6b948074fbe9c2e31e0e144908d9e35cbca5a80c7ef8b060fc4a8212352/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f62656b736f732f6c61726176656c2d737562736372697074696f6e732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/beksos/laravel-subscriptions)[![Quality Score](https://camo.githubusercontent.com/de11579c91a6fefd4ead27a16c85df439370757626726c9a71d070a0f6f637c4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f62656b736f732f6c61726176656c2d737562736372697074696f6e732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/beksos/laravel-subscriptions)[![Total Downloads](https://camo.githubusercontent.com/de89528fab0db099178c04cd049b077e174f218f6c274de6e7ebb4c68cceef09/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62656b736f732f6c61726176656c2d737562736372697074696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beksos/laravel-subscriptions)

A simple laravel package for Subscriptions.

All ideas are welcome, please send your issue in: [Send your issues in here](https://github.com/BechirAhmed/laravel-subscriptions/issues/new)

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

[](#installation)

You can install the package via composer:

**This package work in laravel 5.8 or later because Carbon is updated to 2.0.**

```
composer require beksos/laravel-subscriptions
```

#### Register Service Provider

[](#register-service-provider)

Add `Beksos\LaravelSubscriptions\LaravelSubscriptionsServiceProvider::class` to your file `config/app.php`

```
'providers' => [
    /**
    * Some Providers
    */
    Beksos\LaravelSubscriptions\LaravelSubscriptionsServiceProvider::class
]
```

#### Config file and migrations

[](#config-file-and-migrations)

Publish package config file and migrations with the following command:

```
php artisan vendor:publish --provider="Beksos\LaravelSubscriptions\LaravelSubscriptionsServiceProvider"
```

Then run migrations:

```
php artisan migrate
```

Features Overview
-----------------

[](#features-overview)

- Create plans and his features or consumables. (consumables is in development)
- Manage your plans: get all plans, disable, delete, etc.
- Your user can subscribe to a plan.
- The user can renew, cancel, upgrade or downgrade his subscription.
- Group your plans now is very simple.
- A lot more

A few examples
--------------

[](#a-few-examples)

### Configure your User model for use subscriptions

[](#configure-your-user-model-for-use-subscriptions)

```
