{"id":15525697,"url":"https://github.com/lyrixx/async-messenger-mercure","last_synced_at":"2025-04-23T10:28:47.926Z","repository":{"id":42190746,"uuid":"259339377","full_name":"lyrixx/async-messenger-mercure","owner":"lyrixx","description":"Demo for Symfony Messenger + Mercure","archived":false,"fork":false,"pushed_at":"2025-03-28T18:01:56.000Z","size":4061,"stargazers_count":34,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T23:22:14.312Z","etag":null,"topics":["async","mercure","messenger","php"],"latest_commit_sha":null,"homepage":"https://s.lyrixx.info/async","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lyrixx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-27T13:57:22.000Z","updated_at":"2025-03-28T18:01:59.000Z","dependencies_parsed_at":"2025-03-05T11:42:13.956Z","dependency_job_id":null,"html_url":"https://github.com/lyrixx/async-messenger-mercure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyrixx%2Fasync-messenger-mercure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyrixx%2Fasync-messenger-mercure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyrixx%2Fasync-messenger-mercure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyrixx%2Fasync-messenger-mercure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lyrixx","download_url":"https://codeload.github.com/lyrixx/async-messenger-mercure/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250415685,"owners_count":21426831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","mercure","messenger","php"],"created_at":"2024-10-02T10:59:47.631Z","updated_at":"2025-04-23T10:28:47.920Z","avatar_url":"https://github.com/lyrixx.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Async with Messenger \u0026 Mercure\n\n[light.webm](https://github.com/user-attachments/assets/a7c46f6b-101b-4a81-9ed2-2ff60af4c92b)\n\nThis project is a demo for [a talk I'll give at SymfonyLive Paris 2025](https://s.lyrixx.info/async).\n\nIt's all about async processing with Symfony Messenger and Mercure.\n\n## Running the application locally\n\n### Requirements\n\nA Docker environment is provided and requires you to have these tools available:\n\n * Docker\n * Bash\n * [Castor](https://github.com/jolicode/castor#installation)\n\n#### Castor\n\nOnce `castor` is installed, in order to improve your usage of `castor` scripts, you\ncan install console autocompletion script.\n\nIf you are using bash:\n\n```bash\ncastor completion | sudo tee /etc/bash_completion.d/castor\n```\n\nIf you are using something else, please refer to your shell documentation. You\nmay need to use `castor completion \u003e /to/somewhere`.\n\n`castor` supports completion for `bash`, `zsh` \u0026 `fish` shells.\n\n### Docker environment\n\nThe Docker infrastructure provides a web stack with:\n - FrankenPHP (+Mercure)\n - PostgreSQL\n - Traefik\n - A container with some tooling:\n   - Composer\n   - Node\n   - Yarn / NPM\n\n### Domain configuration (first time only)\n\nBefore running the application for the first time, ensure your domain names\npoint the IP of your Docker daemon by editing your `/etc/hosts` file.\n\nThis IP is probably `127.0.0.1` unless you run Docker in a special VM (like docker-machine for example).\n\n\u003e [!NOTE]\n\u003e The router binds port 80 and 443, that's why it will work with `127.0.0.1`\n\n```\necho '127.0.0.1 async-messenger-mercure.test' | sudo tee -a /etc/hosts\n```\n\n### Starting the stack\n\nLaunch the stack by running this command:\n\n```bash\ncastor start\n```\n\n\u003e [!NOTE]\n\u003e the first start of the stack should take a few minutes.\n\nThe site is now accessible at the hostnames you have configured over HTTPS\n(you may need to accept self-signed SSL certificate if you do not have `mkcert`\ninstalled on your computer - see below).\n\n### SSL certificates\n\nHTTPS is supported out of the box. SSL certificates are not versioned and will\nbe generated the first time you start the infrastructure (`castor start`) or if\nyou run `castor docker:generate-certificates`.\n\nIf you have `mkcert` installed on your computer, it will be used to generate\nlocally trusted certificates. See [`mkcert` documentation](https://github.com/FiloSottile/mkcert#installation)\nto understand how to install it. Do not forget to install CA root from `mkcert`\nby running `mkcert -install`.\n\nIf you don't have `mkcert`, then self-signed certificates will instead be\ngenerated with `openssl`. You can configure [infrastructure/docker/services/router/openssl.cnf](infrastructure/docker/services/router/openssl.cnf)\nto tweak certificates.\n\nYou can run `castor docker:generate-certificates --force` to recreate new certificates\nif some were already generated. Remember to restart the infrastructure to make\nuse of the new certificates with `castor up` or `castor start`.\n\n### Builder\n\nHaving some composer, yarn or other modifications to make on the project?\nStart the builder which will give you access to a container with all these\ntools available:\n\n```bash\ncastor builder\n```\n\n### Other tasks\n\nCheckout `castor` to have the list of available tasks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyrixx%2Fasync-messenger-mercure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flyrixx%2Fasync-messenger-mercure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyrixx%2Fasync-messenger-mercure/lists"}