{"id":16167057,"url":"https://github.com/gemberphp/event-sourcing-symfony-bundle","last_synced_at":"2026-02-27T20:04:02.039Z","repository":{"id":257816951,"uuid":"864893657","full_name":"GemberPHP/event-sourcing-symfony-bundle","owner":"GemberPHP","description":"Symfony Bundle for Gember Event Sourcing","archived":false,"fork":false,"pushed_at":"2025-05-10T14:24:50.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T09:04:36.662Z","etag":null,"topics":["bundle","dcb","ddd","domain-driven-design","dynamic-consistency-boundary","event-sourcing","gember","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GemberPHP.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,"zenodo":null}},"created_at":"2024-09-29T13:00:18.000Z","updated_at":"2025-05-10T14:22:35.000Z","dependencies_parsed_at":"2025-05-08T23:01:33.580Z","dependency_job_id":null,"html_url":"https://github.com/GemberPHP/event-sourcing-symfony-bundle","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"23f61fd8ddf19529001159e9deeaea87d3e19413"},"previous_names":["gemberphp/event-sourcing-symfony-bundle"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/GemberPHP/event-sourcing-symfony-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GemberPHP%2Fevent-sourcing-symfony-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GemberPHP%2Fevent-sourcing-symfony-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GemberPHP%2Fevent-sourcing-symfony-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GemberPHP%2Fevent-sourcing-symfony-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GemberPHP","download_url":"https://codeload.github.com/GemberPHP/event-sourcing-symfony-bundle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GemberPHP%2Fevent-sourcing-symfony-bundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270135061,"owners_count":24533197,"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-12T02:00:09.011Z","response_time":80,"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":["bundle","dcb","ddd","domain-driven-design","dynamic-consistency-boundary","event-sourcing","gember","symfony"],"created_at":"2024-10-10T03:05:28.611Z","updated_at":"2026-02-27T20:04:02.034Z","avatar_url":"https://github.com/GemberPHP.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🫚 Gember Event Sourcing Symfony Bundle\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE)\n[![PHP Version](https://img.shields.io/badge/php-%5E8.3-8892BF.svg?style=flat)](http://www.php.net)\n\nGember Event Sourcing Symfony Bundle for ([gember/event-sourcing](https://github.com/GemberPHP/event-sourcing)).\n\n## Installation\nInstall the Symfony Bundle with composer:\n\n```bash\ncomposer require gember/event-sourcing-symfony-bundle \n```\n\nThis package requires Symfony `^7.1`.\n\n## Configuration\nThis package installs _Gember Event Sourcing_ with all required dependency adapters.\nSome of these adapters need to be configured.\n\nBy default, it uses the following configuration (`gember_event_sourcing.yaml`):\n```yaml\ngember_event_sourcing:\n    message_bus:\n        symfony:\n            event_bus: '@event.bus'\n            command_bus: '@command.bus'\n    cache:\n        enabled: true\n        psr6: \n          service: '@cache.app'\n\n        # Or set a PSR-16 compatible cache layer of your choice\n        # psr16: '@some.psr16.service'\n    serializer:\n        symfony:\n            serializer: '@serializer'\n    event_store:\n        rdbms:\n            doctrine_dbal:\n                connection: '@doctrine.dbal.default_connection'\n    generator:\n        identity:\n            # Use Gember alias of @Symfony\\Component\\Uid\\Factory\\UuidFactory:\n            service: '@gember.identity_generator_symfony.uuid.symfony_uuid_identity_generator'\n            \n            # Or use Gember alias of @Symfony\\Component\\Uid\\Factory\\UlidFactory:\n            # service: '@gember.identity_generator_symfony.ulid.symfony_ulid_identity_generator'\n    registry:\n        event:\n            reflector:\n                path: '%kernel.project_dir%/src'\n        command_handler:\n            reflector:\n                path: '%kernel.project_dir%/src'\n        saga:\n            reflector:\n                path: '%kernel.project_dir%/src'\n    logging:\n        logger: '@logger'\n```\n\nYou can override any of these defaults however you like.\n\n## Required dependencies\nSome of the required dependencies also need to be configured separately.\n\n### Symfony Messenger (`symfony/messenger`)\nAt least one message bus should be configured, with the name `@event.bus`. \n\nWhen this bus is configured, _Gember Event Sourcing_ works out of the box.\nHowever, when a different event bus is preferred, it must be a service implementing `Symfony\\Component\\Messenger\\MessageBusInterface`.\n\n### Symfony Cache (`symfony/cache`)\n_Gember Event Sourcing_ makes use of `@cache.app`. \nThis cache service is automatically configured when using Symfony framework including `symfony/cache`.\n\nWhen this cache service is configured, _Gember Event Sourcing_ works out of the box.\nHowever, when a different cache pool is preferred, it must be a service implementing `Psr\\Cache\\CacheItemPoolInterface` (PSR-6) or `Psr\\SimpleCache\\CacheInterface` (PSR-16).\n\n### Symfony Serializer (`symfony/serializer`)\n_Gember Event Sourcing_ makes use of `@serializer`.\nThis serializer service is automatically configured when using Symfony framework including `symfony/serializer`.\n\nWhen this serializer service is configured, _Gember Event Sourcing_ works out of the box.\nHowever, when a different serializer is preferred, it must be a service implementing `Symfony\\Component\\Serializer\\SerializerInterface`.\n\n### Doctrine DBAL/ORM (`doctrine/dbal`, `doctrine/orm`)\n_Gember Event Sourcing_ makes use of `@doctrine.dbal.default_connection`.\nThis connection service is automatically configured when using Symfony framework including `doctrine/dbal` or `doctrine/orm`.\n\nWhen this connection service is configured, _Gember Event Sourcing_ works out of the box.\nHowever, when a different Doctrine connection is preferred, it must be a service implementing `Doctrine\\DBAL\\Connection`.\n\n## Database\nIn order to persist all domain events in database, a running SQL database is needed.\nThe event store requires two tables. Schema is available in either raw SQL or in a migration file format:\n\nRaw SQL schema: https://github.com/GemberPHP/rdbms-event-store-doctrine-dbal/blob/main/resources/schema.sql\n\nMigrations:\n- Doctrine migrations: https://github.com/GemberPHP/rdbms-event-store-doctrine-dbal/blob/main/resources/migrations/doctrine\n- Phinx migrations: https://github.com/GemberPHP/rdbms-event-store-doctrine-dbal/tree/main/resources/migrations/phinx\n\n## Good to go! \nCheck the main package [gember/event-sourcing](https://github.com/GemberPHP/event-sourcing) or \nthe demo application [gember/example-event-sourcing-dcb](https://github.com/GemberPHP/example-event-sourcing-dcb) for examples.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemberphp%2Fevent-sourcing-symfony-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgemberphp%2Fevent-sourcing-symfony-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemberphp%2Fevent-sourcing-symfony-bundle/lists"}