PHP Queue Manager and Task Executor

PHP Queue Manager and Task Executor

Released 7 years ago , Last update 7 years ago

A simple, fast queue manager and tasks executor. Stack your tasks to queue and execute them later.

PHP Queue Manager is a PHP component for developers to optimize their site performance by moving long executing tasks to Queue.


  • Multiple queues
  • Unlimited messages in queue
  • Queues can be executed by multiple instances simultaneously
  • SQL transaction is used to ensure select only new messages for execution
  • Queues and messages are saved in SQLite database
  • Perfect to control mass mail sending
  • Easily create custom tasks by extending one abstract class
  • PHPUnit tested
  • PHP 5.3 support
  • Failover mechanism with timeouts
  • Component includes simple console manager for viewing and executing messages in queue
  • Exceptions are logged to database

Queue managers are very commonly used in enterprise applications, banking systems, financial institutions, image and video processing websites such as Vimeo or YouTube and many more.

Using this simple PHP queue manager you can also make your user happy.

If your message could not be executed (throws an exception) queue manager will try to execute it after timeout.

Where it can be used

In general this component can be useful for anyone who wants to move long running tasks to background while keeping your site visitor happy.

  • Mail sending and newsletters
  • Image processing
  • Video processing
  • Instant payment notification processing
  • Logging system
  • Save data to Google spreadsheet
  • Web crawling
  • API call requests
  • A lot more ...

Requirements and installation

Queue manager can be included in any existing project simply by including class.

  • PHP 5.3 (can be ported to PHP 5.2 on request)
  • PDO Sqlite extension enabled (can be ported to use any database on request)

After downloading package extract it to your library directory.

Make sure you have class autoloader enabled. An example autoloader is available at [GitHub]( "Gist")

Ensure that apache have the permission to write the queue.sqlite file.

If your Apache or CLI runs with the users permissions it is enough to

chmod 755 queue.sqlite

Else you can do

chmod 777 queue.sqlite

If running from Apache then you need write and execute privileges for Apache on the directory that contains your sqlite database (not just the database file itself).

  • 5 1
  • 4 0
  • 3 0
  • 2 0
  • 1 0
1 Reviews Read Reviews


14 day 14-day money-back guarantee


Personal Commercial License

  • Perpetual license

  • 1 site, 1 server

  • No distribution (hosted use only)

  • Commercial use

  • 12 months support

Example Task in Queue

An example Message is dedicated to sending emails and it looks like this

    namespace Queue\Message;
    use Queue\Message;
    class SendMail extends Message
        public function execute()
            $message = wordwrap($this->message, 70);
            mail($this->to_email, $this->subject, $message);

In the middle of you application you would write:

    $data = array(
        'to_email' => '',
        'subject' => 'Regarding Queue manager component',
        'message' => 'Feedback about component',
    $m = new \Queue\Message\SendMail($data);
    $q = new \Queue\Queue('EmailsQueue');

And later on the day you would send a batch of maximum 1000 emails with the following code:

    $q = new \Queue\Queue('EmailsQueue');

Aint that awesome and super easy? Parallel process made very simple indeed.

By the way, you can also use Universal queue like:

    $data = array(
        'to_email' => '',
        'subject' => 'Regarding Queue manager component',
        'message' => 'Feedback about component',
    $m = new \Queue\Message\SendMail($data);
    $q = new \Queue\Queue();

Using Web Interface to manage queue

Queue manager comes with a simple (1 file) web interface to manage queues.

Login to web manager using basic auth. (Configure users within file.)

You can execute queue manually, review stuck messages. Restart queue.

See screenshots for more information.

2 licenses, starting from From » $19.99 View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.

Or enter your name and Email
  • C chris 4 years ago
    Hi, Does PHP Queue Manager and Task Executor have API documentation?
  • HC Hernan Chiapella 4 years ago
    I want to check your ONLINE DEMO, but the link is broken, do you have another url please?
  • AH Andri Herumurti 5 years ago
    it is possible to buy personal license first then upgrade to developer license later with only 99 usd - 19 usd ?