PHPackages                             php-di-definitions/definitions-gatherer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. php-di-definitions/definitions-gatherer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

php-di-definitions/definitions-gatherer
=======================================

Collect definition files from composer.json's

2.0.0(8mo ago)1116.5k↑2629.2%1MITMakefilePHP ^8.4CI passing

Since Jul 12Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/PHP-DI-Definitions/definitions-gatherer)[ Packagist](https://packagist.org/packages/php-di-definitions/definitions-gatherer)[ GitHub Sponsors](https://github.com/WyriHaximus)[ RSS](/packages/php-di-definitions-definitions-gatherer/feed)WikiDiscussions master Synced 2d ago

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

Definitions gatherer
====================

[](#definitions-gatherer)

[![Build Status](https://camo.githubusercontent.com/a5d7039498d0f27e21be32a2453a2fde4a5cdde09ddf5437aaf13ef9682e8b06/68747470733a2f2f7472617669732d63692e636f6d2f5048502d44492d446566696e6974696f6e732f646566696e6974696f6e732d67617468657265722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/PHP-DI-Definitions/definitions-gatherer)[![Latest Stable Version](https://camo.githubusercontent.com/3a3137e0834f44d0c5e02ba1e7853289b9a38384f836f8385f9c5d5c23eb40f6/68747470733a2f2f706f7365722e707567782e6f72672f7068702d64692d646566696e6974696f6e732f646566696e6974696f6e732d67617468657265722f762f737461626c652e706e67)](https://packagist.org/packages/php-di-definitions/definitions-gatherer)[![Total Downloads](https://camo.githubusercontent.com/4c71dd090f9c5e6c081722a888527f976098db73cb36e2e8375f4c72e36e85a7/68747470733a2f2f706f7365722e707567782e6f72672f7068702d64692d646566696e6974696f6e732f646566696e6974696f6e732d67617468657265722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/php-di-definitions/definitions-gatherer)[![Code Coverage](https://camo.githubusercontent.com/74b054c2ec5f1cb69483ce1a5181f4fa76e97bb560ca64c8ef01e795dd2f64db/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7068702d64692d646566696e6974696f6e732f646566696e6974696f6e732d67617468657265722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/php-di-definitions/definitions-gatherer/?branch=master)[![License](https://camo.githubusercontent.com/aa914306cd52e26add03298d4df10a3eed5577be8f997a8975332793e70ad3b6/68747470733a2f2f706f7365722e707567782e6f72672f7068702d64692d646566696e6974696f6e732f646566696e6974696f6e732d67617468657265722f6c6963656e73652e706e67)](https://packagist.org/packages/php-di-definitions/definitions-gatherer)

Install
=======

[](#install)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.

```
composer require php-di-definitions/definitions-gatherer

```

Gather definitions from files listed in `composer.json`.

Usage
=====

[](#usage)

Lets say for a project we need `react/event-loop` so we create a package that holds a definition file (`etc/di/event-loop.php`) with the following contents:

```
