Download the PHP package avtonom/limit-number-calls-bundle without Composer
On this page you can find all versions of the php package avtonom/limit-number-calls-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download avtonom/limit-number-calls-bundle
More information about avtonom/limit-number-calls-bundle
Files in avtonom/limit-number-calls-bundle
Package limit-number-calls-bundle
Short Description Defender for Symfony 2, of the large number of requests. It protects against multiple processing one value. Guard, aims to protect against brute force and dictionary attacks.
License MIT
Homepage https://github.com/Avtonom/limit-number-calls-bundle
Informations about the package limit-number-calls-bundle
Defender for Symfony 2, of the large number of requests
Defender for Symfony 2, of the large number of requests. It protects against multiple processing one value. Guard, aims to protect against brute force and dictionary attacks.
Page bundle: https://github.com/Avtonom/limit-number-calls-bundle
Features
- Multiple rules for blocking
- Combine rules into groups
- Has a Symfony Security Voter
- Ready set console commands (CLI) to view, add, and delete statistics and locks
- Easy to expand
- Uses a fast pRedis
- Supports up to a microsecond
Maybe in the future:
- Do the work with the console commands more convenient
- Expose the core of the application in a simple version which does not depend on the Symfony
- minor edits. I will be grateful for the help
List console commands (CLI)
- avtonom:limit-calls:add - add the execution of the request in the statistics (does not establish a lock. But check for blocking)
- avtonom:limit-calls:block - add value to the list of locks on value
- avtonom:limit-calls:clear - remove statistics for the values for
- avtonom:limit-calls:rules - Open the list current words for checking locks
- avtonom:limit-calls:status - View a list of blocked values and statistics list
for details, add "-h" after the command name
Parameters of the rule settings
- enabled: true - [OPTIONAL] rule off
- maximum_number: 1 - maximum number of requests that value
- time_period: 60000000 # microsecond ( 1s = 1000 000 microsecond ) - for a period to allow to carry out a specified number of actions
- blocking_duration: 600 # second ( 1m = 60s ) - [OPTIONAL] blocking duration
- group: sms_group or [sms_group, other_group] - [OPTIONAL] association in a list or group with several groups
- subject_class: Avtonom*****\ObjectInterface - Retreiving class or interface to run Symfony Security Voter
- subject_method: getParameter or [getParameter, phone] or [ [getParameter, phone], [getParameter, ip] ]- [OPTIONAL] The method or the method for obtaining attribute values of object
To Install
Run the following in your project root, assuming you have composer set up for your project
Switching ~1.1
for the most recent tag.
Add the bundle to app/AppKernel.php
Configuration options (config.yaml):
Configuration options (parameters.yaml):
Use
Use the name of the rule or group of rules for checking the limit is exceeded:
Need Help?
- Create an issue if you've found a bug,
All versions of limit-number-calls-bundle with dependencies
symfony/dependency-injection Version ~2.3|3.*
predis/predis Version ~1.1
snc/redis-bundle Version ~2.0