PHPackages                             timobakx/api-events-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. [API Development](/categories/api)
4. /
5. timobakx/api-events-bundle

ActiveSymfony-bundle[API Development](/categories/api)

timobakx/api-events-bundle
==========================

Symfony bundle to add some easier to use event listeners for API Platform

v1.1.1(2y ago)35.2kMITPHPPHP ^8.1

Since Apr 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/TimoBakx/api-events-bundle)[ Packagist](https://packagist.org/packages/timobakx/api-events-bundle)[ RSS](/packages/timobakx-api-events-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (7)Used By (0)

ApiEventsBundle
===============

[](#apieventsbundle)

About
-----

[](#about)

This Symfony bundle provides autoconfigured interfaces to more easily autowire lazy event listeners for API Platform.

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

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Applications that use Symfony Flex

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require timobakx/api-events-bundle
```

### Applications that don't use Symfony Flex

[](#applications-that-dont-use-symfony-flex)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require timobakx/api-events-bundle
```

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    TimoBakx\ApiEventsBundle\ApiEventsBundle::class => ['all' => true],
];
```

Usage
-----

[](#usage)

Create an event listener and implement one of the interfaces from the `TimoBakx\ApiEventsBundle\ApiPlatformListeners` namespace:

```
