The MessengerBundle provides integration of the invis1ble/messenger library into the Symfony framework.
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Open a command console, enter your project directory and execute:
$ composer require invis1ble/messenger-bundleOpen a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require invis1ble/messenger-bundleThen, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php file of your project:
// config/bundles.php
return [
// ...
Invis1ble\MessengerBundle\Invis1bleMessengerBundle::class => ['all' => true],
];- If not already done, install Docker Compose (v2.10+)
- Run
docker compose build --no-cacheto build fresh images - Run
docker compose up -d --waitto start the Docker containers - Run
docker compose exec php composer installto install dependencies - Run
docker compose down --remove-orphansto stop the Docker containers.
Run PHP_CodeSniffer checks:
docker compose exec -it php bin/php_codesnifferRun PHP-CS-Fixer checks:
docker compose exec -it php bin/php-cs-fixerTo run Unit tests during development
docker compose exec php vendor/bin/phpunitTo run with coverage
XDEBUG_MODE=coverage docker compose up -d --wait
docker compose exec php vendor/bin/phpunit --coverage-clover var/log/coverage-clover.xml