Example project using QueuePlatform.
This example project registers 6 workers:
- arithmetic - performs arithmetic operations (using php-shunting-yard library)
- encoder - encode text using bcrypt
- fibonacci - calculate Fibbonaci number
- reverse - reverse text
- slowtask - dummy slow task (performs sleep for given seconds - provided as a parameter)
- Clone repository
- Cd into cloned folder
- Run
vagrant up
- Visit http://192.168.29.6/index.html and test workers
vagrant will run 5 processes with supervisor
- Clone repository and make the public folder available by a web server (let's say example.com).
- Copy
db.sqlite3.example
todb.sqlite3
and fix connection path insrc/qm.php
- Run as many processes (
process.php
in src folder) as you want:php process.php http://example.com/queue.php
- Visit http://example.com/index.html and test workers