dzangocart/subscription-bundle

Symfony2 bundle for dzangocart subscription accounts

0.7.2 2017-03-25 15:53 UTC

This package is auto-updated.

Last update: 2024-02-29 02:58:18 UTC


README

Symfony 2 bundle for dzangocart subscription accounts

Features

  • Declare your entities to be subscription-type products
  • Manage different pricing plans and their features
  • Display a pricing page on your web site
  • Easy links to your dzangocart store

Requirements

While this bundle is primarily intended for owners of a Dzangocart store, most of its feature can still be used by anyone.

Installation

Add the following to your project's composer.json file:

{
	require: {
		"dzangocart/subscription-bundle": "dev-master"
	}
}

Register the bundle:

#app/AppKernel.php
public function registerBundles()
{
	$bundles = array(
		…
		new DzangocartSubscriptionBundle()
	);

	return $bundles;
}

If you are using assetic, add the bundle to the assetic configuration:

#config.yml
assetic:
	DzangocartSubscriptionBundle

Configuration

TODO

Usage

TODO

Fixtures

For your convenience, several fixtures are included in the bundle, under Resources\fixtures.

Some of these fixtures only have demonstration value (plans, features) but others like units and periods, may be of some practical use. To load the fixtures into your database using propel:

php app/console propel:fixtures:load @DzangocartSubscriptionBundle