The repository contains the code used in the series of posts about the Messenger component.
Each version of the codebase has its own branch. Currently viewed version is the result of Event bus in Symfony application.
- PHP 7.2.5 or greater
- MySQL 5.7 or greater
- Composer
- Clone the repository
git clone https://github.com/karol-dabrowski/messenger-symfony-example.git -b event_bus
cd ./messenger-symfony-example
composer install
cp .env .env.local
- Edit
.env.local
file and paste your MySQL database credentials inDATABASE_URL
. - Create database (if it doesn't exist already) and run migrations.
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate
- Run local server
php -S localhost:8000 -t public
Released under the MIT license.