{"id":18056293,"url":"https://github.com/monteiro/rent-car-ddd","last_synced_at":"2025-10-13T15:35:54.022Z","repository":{"id":211447455,"uuid":"729160371","full_name":"monteiro/rent-car-ddd","owner":"monteiro","description":"Rent a car DDD example","archived":false,"fork":false,"pushed_at":"2023-12-14T18:15:54.000Z","size":142,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-16T08:56:54.662Z","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-08T15:01:18.000Z","updated_at":"2023-12-23T15:42:56.000Z","dependencies_parsed_at":"2023-12-08T16:24:22.131Z","dependency_job_id":"c8ad7a77-f0ea-422b-a996-5fa251fd91ba","html_url":"https://github.com/monteiro/rent-car-ddd","commit_stats":null,"previous_names":["monteiro/rent-car-ddd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/monteiro/rent-car-ddd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monteiro%2Frent-car-ddd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monteiro%2Frent-car-ddd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monteiro%2Frent-car-ddd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monteiro%2Frent-car-ddd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monteiro","download_url":"https://codeload.github.com/monteiro/rent-car-ddd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monteiro%2Frent-car-ddd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015930,"owners_count":26085777,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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.893Z","updated_at":"2025-10-13T15:35:53.977Z","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%2Frent-car-ddd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonteiro%2Frent-car-ddd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonteiro%2Frent-car-ddd/lists"}