Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 653 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 653 Bytes

elegant-background-job-php-demo

Demo code for Elegant background jobs in PHP.

To run queue worker

(forever running program)

php bin/queue-worker.php

To invoke sending message

Open another terminal(or tab) and run:

php bin/send-forgot-password-email.php

After that, if you see the output of queue worker, you should see something like this:

Processing: App\Job\SendForgotPasswordEmail
Processed: App\Job\SendForgotPasswordEmail

That's all. The more messages you add to queue, the more processing will be done by the queue worker.