Download the PHP package kitpages/semaphore-bundle without Composer
On this page you can find all versions of the php package kitpages/semaphore-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kitpages/semaphore-bundle
More information about kitpages/semaphore-bundle
Files in kitpages/semaphore-bundle
Package semaphore-bundle
Short Description This is a Symfony2 bundle that provides a semaphore system.
License MIT
Homepage https://github.com/kitpages/KitpagesSemaphoreBundle
Informations about the package semaphore-bundle
KitpagesSemaphoreBundle
This bundle allows a protection between several parallel php process accessing a single resource
quick start
Features
- shared semaphore between several parallel php processes (using the filesystem)
- deadlock detection : consider a semaphore as dead after a configurable duration
- logging system for deadlock on a specific channel in monolog (channel : kitpages_semaphore)
- stopwatch to see semaphore usage in the timeline of the symfony debug toolbar
Installation
Using Composer, just $ composer require kitpages/semaphore-bundle
package or:
Then add the bundle in AppKernel :
The add configuration in your config.yml.
Default values are 0.1s for pooling sleep time and 5s for deadlock duration
Status
- stable, tested and under travis-ci
Versions
2014-02-11 : v1.4.0 : addded semaphore usage in the timeline of the SF2 debug toolbar
- no BC break
- new : added stopwatch to add semaphore usage in the timeline of the SF2 debug toolbar
- new : debug log less verbose
- new : warning log added on release on a not locked semaphore
2014-01-22 : v1.3.0 : refactoring based on file lock
- no BC break
- used file lock instead of SQL transaction
2014-01-14 : v1.2.0 : logger for dead lock
- no BC break
- new : use monolog on the channel "kitpages_semaphore" to send a warning for every deadlock
- fix : dependencies in composer.json
- enh : more unit testing for configuration parser and service initialisation in the DIC
- enh : Readme rewriting
2013-12-11 : v1.1.0 : atomicity in aquire-release process
- no BC Break
- new : add a db transaction around the aquire-release process to garanty atomicity
2013-12-05 : v1.0.0 : first release
All versions of semaphore-bundle with dependencies
symfony/framework-bundle Version ~3.0
symfony/monolog-bundle Version ~3.0
symfony/console Version ~3.0