Start a Mercure Hub:
$ docker run \
-e SERVER_NAME=:3000 \
-e MERCURE_PUBLISHER_JWT_KEY='!ChangeMe!' \
-e MERCURE_SUBSCRIBER_JWT_KEY='!ChangeMe!' \
-p 3000:3000 \
dunglas/mercure caddy run -config /etc/caddy/dev.Caddyfile
Install the test app:
$ composer install
$ cd tests/app
$ php public/index.php doctrine:schema:create
Start the test app:
$ php -S localhost:8000 -t public
http://localhost:8000
: basic featureshttp://localhost:8000/chat
: chat using Turbo Streamshttp://localhost:8000/books
: broadcasthttp://localhost:8000/authors
: broadcasthttp://localhost:8000/artists
: broadcasthttp://localhost:8000/songs
: broadcast
$ php vendor/bin/simple-phpunit