{"id":86356,"library":"symfony-event-dispatcher","title":"Symfony EventDispatcher","description":"Provides tools that allow your application components to communicate with each other by dispatching events and listening to them.","status":"active","version":"8.1.0","language":"php","source_language":null,"source_url":"https://github.com/symfony/event-dispatcher","tags":["event-dispatcher","symfony","event-driven","decoupling"],"install":[{"cmd":"composer require symfony/event-dispatcher","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"EventDispatcher","correct":"use Symfony\\Component\\EventDispatcher\\EventDispatcher;"}],"quickstart":{"code":"use Symfony\\Component\\EventDispatcher\\EventDispatcher;\n\n$dispatcher = new EventDispatcher();\n$dispatcher->addListener('user.registered', function ($event) {\n    echo 'User registered!';\n});\n$dispatcher->dispatch(new \\Symfony\\Contracts\\EventDispatcher\\Event(), 'user.registered');","lang":"php","description":"Creates an EventDispatcher, registers a listener, and dispatches an event."},"warnings":[{"fix":"Use Symfony\\Contracts\\EventDispatcher\\Event as base class for custom events.","message":"Event class must implement or extend Symfony\\Contracts\\EventDispatcher\\Event in Symfony 4.3+","severity":"breaking","affected_versions":">=4.3"}],"env_vars":null,"search_vec":"'allow':6 'applic':8 'communic':11 'compon':9 'decoupl':29 'dispatch':16,24 'driven':28 'event':17,23,27 'event-dispatch':22 'event-driven':26 'eventdispatch':2 'listen':19 'provid':3 'symfoni':1,25 'tool':4","created_at":"2026-06-19T08:00:11.862700+00:00","updated_at":"2026-06-19T08:00:11.862700+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://symfony.com","github":"https://github.com/symfony/event-dispatcher","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}