PHPackages                             michaelesmith/event-data-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. michaelesmith/event-data-bundle

ActiveSymfony-bundle

michaelesmith/event-data-bundle
===============================

Allows for easy use of the EventData lib

059PHP

Since Sep 2Pushed 11y ago1 watchersCompare

[ Source](https://github.com/michaelesmith/EventDataBundle)[ Packagist](https://packagist.org/packages/michaelesmith/event-data-bundle)[ RSS](/packages/michaelesmith-event-data-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

README
======

[](#readme)

What is it?
-----------

[](#what-is-it)

This is a library that allows for integration of the EventData library () by adding a panel to the web profiler

Installation
------------

[](#installation)

### Use Composer (*recommended*)

[](#use-composer-recommended)

Get Composer at

```
php composer.phar require "michaelesmith/event-data-bundle" "dev-master"

```

Examples
--------

[](#examples)

Example configuration

```
# app/config/config.yml
    events_storage:
        class: MS\EventData\Storage\KeenIO
        arguments: [ @keen_io ]

    events_logger:
        class: MS\EventData\Logger\PSRLogger
        arguments: [@logger, @events]

    events_logger_generic:
        class: MS\EventData\Logger\GenericLogger

    events_data_collector:
        class: MS\Bundle\EventDataBundle\DataCollector\EventDataCollector
        arguments: [@events, @events_logger_generic]
        tags:
            - { name: data_collector, template: "MSEventDataBundle:Collector:events", id: "event_data" }

    events_data_listener:
        class: MS\Bundle\EventDataBundle\EventListener\EventDataListener
        arguments: [@events]
        tags:
            -
                name: kernel.event_listener
#                event: kernel.finish_request
                event: kernel.terminate
                method: flush
                priority: 0

    events:
        class: MS\EventData\EventDataManager
        arguments: [@events_storage]
        calls:
            - [addLogger, [@events_logger]]
            - [addLogger, [@events_logger_generic]]
            - [setDebug, [%kernel.debug%]]
            - [setDelayed, ["@=not parameter('kernel.debug')"]]
```

To use the keen storage you will to require the keenIO bundle"keen-io/keen-io-bundle": "~1.0". This also configures a PSRLogger with the default logger instance. The generic logger is used by the profiler panel. The data collector is what powers the profiler panel. The event listener allows the events to be flushed to the storage after the response has been sent to the user to prevent a delay. For the data collector to have the response you need to use kernel.finish\_request which is called just before the response is sent, in production you should use kernel.terminate which is called after the response is sent.

To use it in an action you can simple do:

```
$this->container->get('events')->store(new Event('page_view', array('homepage')));
```

The event class passed to it can be anything that implements the \\MS\\EventData\\Event\\EventInterface or extends \\MS\\EventData\\Event\\Event. I have found it helpful to use my own Event class so it can automatically add data such as current time, user ip or logged in username.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/181546?v=4)[Michael Smith](/maintainers/michaelesmith)[@michaelesmith](https://github.com/michaelesmith)

---

Top Contributors

[![michaelesmith](https://avatars.githubusercontent.com/u/181546?v=4)](https://github.com/michaelesmith "michaelesmith (7 commits)")

### Embed Badge

![Health badge](/badges/michaelesmith-event-data-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/michaelesmith-event-data-bundle/health.svg)](https://phpackages.com/packages/michaelesmith-event-data-bundle)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
