{"id":18056292,"url":"https://github.com/monteiro/symfonycon-winter-2021","last_synced_at":"2025-04-11T02:07:10.551Z","repository":{"id":66804062,"uuid":"428190737","full_name":"monteiro/symfonycon-winter-2021","owner":"monteiro","description":"domain events application demo","archived":false,"fork":false,"pushed_at":"2023-12-23T15:45:43.000Z","size":148,"stargazers_count":17,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T23:31:21.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/monteiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-11-15T09:00:50.000Z","updated_at":"2024-04-13T20:56:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4c26ca0-b969-47f7-9b37-4c76d0032274","html_url":"https://github.com/monteiro/symfonycon-winter-2021","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/monteiro%2Fsymfonycon-winter-2021","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monteiro%2Fsymfonycon-winter-2021/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monteiro%2Fsymfonycon-winter-2021/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monteiro%2Fsymfonycon-winter-2021/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monteiro","download_url":"https://codeload.github.com/monteiro/symfonycon-winter-2021/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245957573,"owners_count":20700290,"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":[],"created_at":"2024-10-31T01:14:33.883Z","updated_at":"2025-03-28T02:30:53.308Z","avatar_url":"https://github.com/monteiro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SymfonyWorld Winter Edition 2021\n\n\nThis project is a demo from the presentation of Hugo Monteiro at SymfonyWorld Winter edition 2021: \n\n[\"Decoupling your application using Symfony Messenger and events\"](https://live.symfony.com/2021-world-winter/schedule#session-606)\n\n\n## Setup the application\n\n```\ncomposer install\n\nbin/console doctrine:migrations:migrate\nbin/console doctrine:fixtures:load\n\n// create a customer, car and reservation and cancel it\nbin/console app:rentcar:simulation -vvv\n\n// get domain events from the database (from the stored_event table) and push to the transport (outbox) - infinite loop\nbin/console app:domain:events:publish -vvv\n\n// consume domain events in another handler using the transport\nbin/console messenger:consume async\n```\n\n_Note: The transport configured is the doctrine one, so the sqlite database will be used by default._\n\n## Run unit tests\n\n```\nbin/phpunit -c phpunit.xml.dist\n```\n\n## What should you expect? \n\n- Domain events in a table \"stored_event\" after executing the \"simulation\" command\n- Aggregate roots in their tables (e.g. customer, reservation, etc)\n- Worker that sends the domain events from the database to the transport configured\n- Use Symfony Messenger consume command to consume domain events published\n\n## Work in progress\n\n- API with all the handler actions and API tests\n- Create more tests to cover all invariants\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonteiro%2Fsymfonycon-winter-2021","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonteiro%2Fsymfonycon-winter-2021","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonteiro%2Fsymfonycon-winter-2021/lists"}