PHPackages                             devoralive/traffic-limit-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. [Caching](/categories/caching)
4. /
5. devoralive/traffic-limit-bundle

ActiveSymfony-bundle[Caching](/categories/caching)

devoralive/traffic-limit-bundle
===============================

A Redis based traffic handler for max request limit in Symfony 2

012PHP

Since Oct 28Pushed 9y agoCompare

[ Source](https://github.com/romeritoCL/TrafficLimitBundle)[ Packagist](https://packagist.org/packages/devoralive/traffic-limit-bundle)[ RSS](/packages/devoralive-traffic-limit-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

TrafficLimitBundle
==================

[](#trafficlimitbundle)

Limit the amount of request to your application based on a defined key

It uses SNC\\RedisBundle to connect to redis. You can create as many traffic limit services as you require

Installation
============

[](#installation)

Step 1: Download the Bundle
---------------------------

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

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require devoralive/traffic-limit-bundle "dev-master"
```

This will also install snc\\RedisBundle if you did not have it installed

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Step 2: Enable the Bundle
-------------------------

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
