PHPackages                             terox/subscription-bundle - 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. terox/subscription-bundle

ActiveSymfony-bundle[Payment Processing](/categories/payments)

terox/subscription-bundle
=========================

Symfony Bundle for manage user subscriptions

0.2.0(8y ago)112.8k8[2 issues](https://github.com/terox/SubscriptionBundle/issues)MITPHPPHP &gt;=7.0.0CI failing

Since Jan 18Pushed 6y ago3 watchersCompare

[ Source](https://github.com/terox/SubscriptionBundle)[ Packagist](https://packagist.org/packages/terox/subscription-bundle)[ Docs](https://github.com/terox/SubscriptionBundle)[ RSS](/packages/terox-subscription-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (8)Versions (5)Used By (0)

SubscriptionBundle [![Build Status](https://camo.githubusercontent.com/8072860452c8b7907ed8cb4f04a7beac6a468119179d9a8b7f301609203e08fc/68747470733a2f2f7472617669732d63692e6f72672f7465726f782f537562736372697074696f6e42756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/terox/SubscriptionBundle)[![Code Coverage](https://camo.githubusercontent.com/4eb899af22ec14c1f886d5258c3ab530caffdb79b84e523783c080003e60986d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7465726f782f537562736372697074696f6e42756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/terox/SubscriptionBundle/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5bcac6a511973f5f705f6e7c2afca71e0e1e70c983069dbd4f8e96a26fefb24e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7465726f782f537562736372697074696f6e42756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/terox/SubscriptionBundle/?branch=master)
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#subscriptionbundle)

[![SubscriptionBundleLogo](https://raw.githubusercontent.com/terox/SubscriptionBundle/master/doc/images/SubscriptionBundleLogo.png)](https://raw.githubusercontent.com/terox/SubscriptionBundle/master/doc/images/SubscriptionBundleLogo.png)

> SubscriptionBundle helps you to create and manage subscriptions services (also known as plans) for your users in your application.

The SubscriptionBundle fits perfectly in your Symfony application and your models. It don't cares about what persistence layer are you using (a [http://www.doctrine-orm.org](Doctrine), [http://www.redis.io](Redis)...); it only provides an easy and solid base where start to handle this type of products in your Symfony applications.

**Features**

- Trying to maintain a easy, solid, well-documented and **agnostic** base to start to work without headaches.
- Many actions allowed on to subscriptions: *active*, *expire*, *disable* and *renew* with his appropriate events.
- **Extensible**: you can extend and change the out-of-the-box features creating your own strategies that determine how a subscription should be handled to fit to your requirements.

**Compatible**

- Symfony 3.3+/4+ applications with Doctrine

Documentation
-------------

[](#documentation)

- [Quick Start](#quick-start)
- [Guide](https://github.com/terox/SubscriptionBundle/blob/master/doc/Guide.md)
- Strategies

    - Product strategies:

        - [What is a product strategy](https://github.com/terox/SubscriptionBundle/blob/master/doc/WhatIsProductStrategy.md)
        - [How to create a product strategy](https://github.com/terox/SubscriptionBundle/blob/master/doc/HowToCreateAProductStrategy.md%5D)
        - [Out-of-the-box strategies](https://github.com/terox/SubscriptionBundle/blob/master/doc/strategies/product):
            - [Default product strategy](https://github.com/terox/SubscriptionBundle/blob/master/doc/strategies/product/DefaultStrategy.md)
    - Subscription strategies:

        - [What is a subscription strategy](https://github.com/terox/SubscriptionBundle/blob/master/doc/WhatIsAProductStrategy.md)
        - [How to create a subscription strategy](https://github.com/terox/SubscriptionBundle/blob/master/doc/HowToCreateASubscriptionStrategy.md)
        - [Out-of-the-box strategies](https://github.com/terox/SubscriptionBundle/blob/master/doc/strategies/subscription):
            - [End Last Strategy](https://github.com/terox/SubscriptionBundle/blob/master/doc/strategies/subscription/EndLastStrategy.md)
- CookBooks/Examples:

    - [Symfony 4 example sandbox](https://github.com/terox/sf4-subscription-example) with doctrine

Quick start
-----------

[](#quick-start)

### 1. Download the bundle:

[](#1-download-the-bundle)

```
$ composer require terox/subscription-bundle
```

### 2. Enable the bundle in Symfony Application (only Symfony 3+):

[](#2-enable-the-bundle-in-symfony-application-only-symfony-3)

```
