Requirement

  • Celery
  • extension: php-amqp (apt-get install php-amqp)

Edit tasks.py (lakukan penyesuaian smtp_user dan smtp_pass)

install library php

composer install

run php:

php -S localhost:9876

run celery

celery -A tasks worker --loglevel=info

run rabbit under docker

docker run --rm -p 5672:5672 rabbitmq:3

visit http://localhost:9876/submit.php