Download the PHP package miksoftware/daemon-bundle without Composer
On this page you can find all versions of the php package miksoftware/daemon-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download miksoftware/daemon-bundle
More information about miksoftware/daemon-bundle
Files in miksoftware/daemon-bundle
Package daemon-bundle
Short Description Symfony2 Daemon Bundle
License BSD-3-Clause
Homepage https://github.com/m1ksoftware/daemon-bundle.git
Informations about the package daemon-bundle
DaemonBundle
DeamonBundle allows to easily convert your Symfony2 console scripts into system daemons. To use DaemonBundle pcntl
is required to be configured in your PHP binary.
DaemonBundle is a based in the PEAR library System_Daemon which was created by Kevin Vanzonneveld and it is highly inspaired by uecode/daemon-bundle.
System_Daemon Package
System_Daemon is a PHP class that allows developers to create their own daemon applications on Linux systems. The class is focussed entirely on creating and spawning standalone daemons. More information can be found at:
Installation
-
Add this bundle to the
composer.json
file of your project. -
Add the bundle to your application kernel.
- Configure the bundle by adding parameters to the
config.yml
orparameters.yml
file:
Configuration Parameters
To change any configuration setting, you could add required parameters to your project config. Following, an example of a minimal required configuration.
Other available parameters (with default values):
Usage
-
Create a Symfony2 command that extends from
DaemonizedCommand
: - Run your daemon
The methods start
, stop
and restart
will be automatically added to your Symfony2 command. It is possible to add new methods to your command as follow:
License
DaemonBundle is completly open and it is released under the terms of BSD 3-Clause.
Copyright (c) 2013-2014, Michele Nucci All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the M1KSoftware and Michele Nucci nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY MICHELE NUCCI ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MICHELE NUCCI BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.