Skip to content

A super lightweight PHP library to create a job daemon (e.g. consumer scripts) off of that is robust, free of memory leaks, and can run forever.

License

Notifications You must be signed in to change notification settings

bigicoin/phpJobDaemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JobDaemon

A super lightweight PHP library to create a job daemon off of. Ideal for queue consumers and usage in other types of producer/consumer architecture. It is robust, free of memory leaks, and can run forever (provided that the code extending from it are also free of memory leaks).

It has been used in several production environments ranging from small to medium sized traffic, proven to work well to process millions of queue entries a day.

Features

  • Completely open to process data of any kind. Simply extend the class and overload the parent process and child process methods and do whatever work you need.
  • Flexible logging options.
  • Tested with PHP 5.3 and above

Installation

Grab a copy of the repository and move JobDaemon.php into your project and place it wherever you want, and include/require the file.

Using Composer

If you need to, install composer.

Create a composer.json file in your project root, or add JobDaemon to it if you have an existing one.

{
    "require": {
        "php-job-daemon/php-job-daemon": "dev-master"
    }
}

Install via composer by running this in your project root:

$ composer install

About

A super lightweight PHP library to create a job daemon (e.g. consumer scripts) off of that is robust, free of memory leaks, and can run forever.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages