{"id":28106005,"url":"https://github.com/thewalkingcoder/twcbusbundle","last_synced_at":"2026-03-01T15:33:22.966Z","repository":{"id":57073893,"uuid":"202343850","full_name":"thewalkingcoder/TwcBusBundle","owner":"thewalkingcoder","description":"Provide simple way to implement Message Bus concept in Symfony 4","archived":false,"fork":false,"pushed_at":"2025-05-15T08:57:21.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-15T12:39:20.715Z","etag":null,"topics":["bus","cqrs","symfony"],"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/thewalkingcoder.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}},"created_at":"2019-08-14T12:14:15.000Z","updated_at":"2025-05-15T08:51:21.000Z","dependencies_parsed_at":"2022-08-24T14:54:47.976Z","dependency_job_id":null,"html_url":"https://github.com/thewalkingcoder/TwcBusBundle","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/thewalkingcoder/TwcBusBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewalkingcoder%2FTwcBusBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewalkingcoder%2FTwcBusBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewalkingcoder%2FTwcBusBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewalkingcoder%2FTwcBusBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thewalkingcoder","download_url":"https://codeload.github.com/thewalkingcoder/TwcBusBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewalkingcoder%2FTwcBusBundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271749109,"owners_count":24814128,"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-08-23T02:00:09.327Z","response_time":69,"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":["bus","cqrs","symfony"],"created_at":"2025-05-13T23:18:27.486Z","updated_at":"2026-03-01T15:33:22.909Z","avatar_url":"https://github.com/thewalkingcoder.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TwcBusBundle\n\nProvide simple way to implement Message Bus concept in Symfony.\n\n## Before start \n\nThank's [@lilobase](https://twitter.com/Lilobase) for you excellent talk at [PHP TOUR 2018](https://afup.org/talks/2628-cqrs-fonctionnel-event-sourcing-domain-driven-design).\n\nThank's [@matGiWeb](https://twitter.com/matGiWeb) for you approach with [cqrs-skeleton](https://github.com/magi-web/cqrs-skeleton)\n\n## Remember\n\nCQRS (Command Query Responsibility Segregation) it's an architectural pattern that aims to separate the **writing** (Command) and **reading** (Query).\n\n## Pré-requis\n\nsymfony powerfull DI with autowire and autoconfigure enable\n\n```\nservices:\n\n    # default configuration for services in *this* file\n    _defaults:\n        autowire: true      # Automatically injects dependencies in your services.\n        autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.\n        public: false\n\n```\n\n\n## Installation\n\n```\n\ncomposer require twc/bus-bundle\n\n```\n\n\n## How to use ?\n\nIf you know CQRS pattern, you only have to implement the desired interface\n\n### About Commands\n\n| topic  | Interface |\n|--------|-----------|\n| Command | Twc\\BusBundle\\Command\\Interfaces\\Command |\n| CommandHandler | Twc\\BusBundle\\Command\\Interfaces\\CommandHandler |\n| Middleware | Twc\\BusBundle\\Command\\Interfaces\\CommandBusMiddleware |\n\n### About Events\n\n| topic  | Interface |\n|--------|-----------|\n| Event | Twc\\BusBundle\\Event\\Interfaces\\Event |\n| EventHandler | Twc\\BusBundle\\Event\\Interfaces\\EventHandler |\n\n### About Queries\n\n| topic  | Interface |\n|--------|-----------|\n| Query | Twc\\BusBundle\\Query\\Interfaces\\Query |\n| QueryHandler | Twc\\BusBundle\\Event\\Interfaces\\QueryHandler |\n\n## About Bus\n\n| topic  | Interface |\n|--------|-----------|\n| CommandBusDispatcher | Twc\\BusBundle\\Command\\CommandBusDispatcher |\n| EventBusDispatcher | Twc\\BusBundle\\Event\\EventBusDispatcher |\n| QueryBusDispatcher | Twc\\BusBundle\\Query\\QueryBusDispatcher |\n\n\nThat's all !\n \nCommandBus, EventBus, QueryBus will do the work, thank's Dependencies Injection and autowiring in symfony.\n\n# Samples\n\n- [exemple (fr)](./docs/cqrs_fr.md)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthewalkingcoder%2Ftwcbusbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthewalkingcoder%2Ftwcbusbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthewalkingcoder%2Ftwcbusbundle/lists"}