PHP Package: symfony/event-dispatcher

Symfony's Event Dispatcher component provides tools for implementing event dispatcher patterns in PHP applications with ease and flexibility.

Current Version: 7.3.0
Last Updated: 2025-05-29
PHP Requirement: >=8.2
Dependencies:
symfony/event-dispatcher-contracts
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Symfony's Event Dispatcher is a powerful component that allows developers to decouple various aspects of their applications by using a simple publish-subscribe pattern. It offers a rich set of features for managing events and listeners, enabling clean and maintainable codebases.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 7.3.0

Download Download v7.3.0

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/symfony/event-dispatcher/7.3.0/loader.php';
require_once 'libs/symfony/event-dispatcher-contracts/{lib_version}/loader.php';

use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Contracts\EventDispatcher\Event;

$obj = new EventDispatcher();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.