PHPackages                             rich-id/autoconfigure-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rich-id/autoconfigure-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

rich-id/autoconfigure-bundle
============================

Create easy autoconfigurations with annotations to add tag to a service, inject service and arguments, or decorate another service

v1.1.0(4y ago)449.8k↓48.7%1MITPHPPHP ^7.3 || ^8.0

Since Jun 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rich-id/autoconfigure-bundle)[ Packagist](https://packagist.org/packages/rich-id/autoconfigure-bundle)[ RSS](/packages/rich-id-autoconfigure-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (8)Used By (0)

 [![](./.github/logo.svg)](./.github/logo.svg)

[![autoconfigure bundle](https://camo.githubusercontent.com/dedb794151a883d1eda2a58639425f6c6e10f0ad12cb77bb6b0045c62d026ce0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726963682d69642f6175746f636f6e6669677572652d62756e646c65)](https://packagist.org/packages/rich-id/autoconfigure-bundle)[![badge](https://github.com/rich-id/autoconfigure-bundle/workflows/Tests/badge.svg)](https://github.com/rich-id/autoconfigure-bundle/actions)[![badge](https://camo.githubusercontent.com/a67cce35ad6c9141d6bdcf83d9be498ec6acec58672f3a4fefa7a8e913d95017/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f726963682d69642f6175746f636f6e6669677572652d62756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/rich-id/autoconfigure-bundle?branch=master)[![maintainability](https://camo.githubusercontent.com/14b2b80850f0c8a35fb6d77e336fb3ab0b9e1ddd8344676fb01ed85196575454/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f33346631623035643330356635383639633130392f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/rich-id/autoconfigure-bundle/maintainability)[![contributions welcome brightgreen](https://camo.githubusercontent.com/9e93e892d0685e1bf7a1d0bd7c8410d6ecf2086a0a7b48dd58a6b96fa556ea2a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/richcongress/test-suite/issues)[![license MIT blue](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP 7](https://camo.githubusercontent.com/f13cc5baf57b8e115f484fde3c7ade83b2a814edc6940da54ec35bac43eb3faf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e332532422d79656c6c6f77)](https://camo.githubusercontent.com/f13cc5baf57b8e115f484fde3c7ade83b2a814edc6940da54ec35bac43eb3faf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e332532422d79656c6c6f77)[![PHP 8](https://camo.githubusercontent.com/f2ff7d62bf0c2700f183b977ccb28f19f64d28a5c86c11ea90fd3bbd1a43f259/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302532422d79656c6c6f77)](https://camo.githubusercontent.com/f2ff7d62bf0c2700f183b977ccb28f19f64d28a5c86c11ea90fd3bbd1a43f259/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302532422d79656c6c6f77)[![Symfony 4%2B black](https://camo.githubusercontent.com/c7f909c07c2aaac81c18968088fe3f5c9fc6348987b7f330e177fdcd24a1ea9e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d342532422d626c61636b)](https://camo.githubusercontent.com/c7f909c07c2aaac81c18968088fe3f5c9fc6348987b7f330e177fdcd24a1ea9e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d342532422d626c61636b)[![Symfony 5%2B black](https://camo.githubusercontent.com/0b1128137c1357779f86a0d8f2734fbb557fd154175959c66c0174bbf9e855e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d352532422d626c61636b)](https://camo.githubusercontent.com/0b1128137c1357779f86a0d8f2734fbb557fd154175959c66c0174bbf9e855e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d352532422d626c61636b)

Simplify the service declaration and tagging for Symfony.

Table of content
----------------

[](#table-of-content)

- [1. Quick showcase](#quick-showcase)
- [2. Installation](#installation)
- [3. Documentation](#documentation)
    - [3.1. Inject a service or an argument](#inject-a-service-or-an-argument)
    - [3.2. Add an EventListener](#add-an-eventlistener)
    - [3.3. Decorate a service](#decorate-a-service)
    - [3.4. Tag a service](#tag-a-service)
- [4. Versioning](#versioning)
- [5. Contributing](#contributing)
- [6. License](#license)
- [7. Hacking](#hacking)

1. Quick showcase
-----------------

[](#1-quick-showcase)

Import the annotation/annotation, and use them to configure your service like following:

```
use RichId\AutoconfigureBundle\Annotation as Service;

/**
 * @Service\Argument("$service", DecorationEventListener::class)
 * @Service\Decoration("any_service")
 * @Service\Tag(name="special_tag")
 */
final class DummyClass
{
    public function __construct($service)
    {
        ...
    }
}
```

2. Installation
---------------

[](#2-installation)

This version of the bundle requires Symfony 4.4+ and PHP 7.3+.

```
composer require rich-id/autoconfigure-bundle
```

3. Documentation
----------------

[](#3-documentation)

### 3.1. [Inject a service or an argument](docs/ServiceArgumentInjection.adoc)

[](#31-inject-a-service-or-an-argument)

### 3.2. [Add an EventListener](docs/EventListener.adoc)

[](#32-add-an-eventlistener)

### 3.3. [Decorate a service](docs/Decoration.adoc)

[](#33-decorate-a-service)

### 3.4. [Tag a service](docs/Tagging.adoc)

[](#34-tag-a-service)

4. Versioning
-------------

[](#4-versioning)

autoconfigure-bundle follows [semantic versioning](https://semver.org/). In short the scheme is MAJOR.MINOR.PATCH where 1. MAJOR is bumped when there is a breaking change, 2. MINOR is bumped when a new feature is added in a backward-compatible way, 3. PATCH is bumped when a bug is fixed in a backward-compatible way.

Versions bellow 1.0.0 are considered experimental and breaking changes may occur at any time.

5. Contributing
---------------

[](#5-contributing)

Contributions are welcomed! There are many ways to contribute, and we appreciate all of them. Here are some of the major ones:

- [Bug Reports](https://github.com/rich-id/autoconfigure-bundle/issues): While we strive for quality software, bugs can happen, and we can’t fix issues we’re not aware of. So please report even if you’re not sure about it or just want to ask a question. If anything the issue might indicate that the documentation can still be improved!
- [Feature Request](https://github.com/rich-id/autoconfigure-bundle/issues): You have a use case not covered by the current api? Want to suggest a change or add something? We’d be glad to read about it and start a discussion to try to find the best possible solution.
- [Pull Request](https://github.com/rich-id/autoconfigure-bundle/pulls): Want to contribute code or documentation? We’d love that! If you need help to get started, GitHub as [documentation](https://help.github.com/articles/about-pull-requests/) on pull requests. We use the ["fork and pull model"](https://help.github.com/articles/about-collaborative-development-models/) were contributors push changes to their personal fork and then create pull requests to the main repository. Please make your pull requests against the `master` branch.

As a reminder, all contributors are expected to follow our [Code of Conduct](./CODE_OF_CONDUCT.md).

6. License
----------

[](#6-license)

autoconfigure-bundle is distributed under the terms of the MIT license.

See [LICENSE](./LICENSE) for details.

7. Hacking
----------

[](#7-hacking)

You might use Docker and `docker-compose` to hack the project. Check out the following commands.

```
# Start the project
docker-compose up -d

# Install dependencies
docker-compose exec application composer install

# Run tests
docker-compose exec application bin/phpunit

# Run a bash within the container
docker-compose exec application bash
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~201 days

Recently: every ~251 days

Total

6

Last Release

798d ago

Major Versions

v0.1.2 → v1.0.02021-08-16

v1.1.0 → v2.x-dev2024-03-11

PHP version history (3 changes)v0.1.0PHP &gt;=7.3

v0.1.2PHP ^7.3 || ^8.0

v2.x-devPHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/8084ee0162a85df3b3f49230b8c0dde81108195caa541bb00642cbd050e88b25?d=identicon)[hudumazeau](/maintainers/hudumazeau)

---

Top Contributors

[![NicolasGuilloux](https://avatars.githubusercontent.com/u/4090627?v=4)](https://github.com/NicolasGuilloux "NicolasGuilloux (23 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rich-id-autoconfigure-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/rich-id-autoconfigure-bundle/health.svg)](https://phpackages.com/packages/rich-id-autoconfigure-bundle)
```

###  Alternatives

[friendsofsymfony/comment-bundle

This Bundle provides threaded comment functionality for Symfony applications

460751.2k5](/packages/friendsofsymfony-comment-bundle)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[koriym/attributes

An annotation/attribute reader

433.4M12](/packages/koriym-attributes)[hostnet/entity-tracker-component

Provides an event when a Tracked entity changes

16158.1k4](/packages/hostnet-entity-tracker-component)[gomachan46/state-machine

simple state machine with annotations for PHP, inspired by AASM known as a Ruby state machine.

1893.9k](/packages/gomachan46-state-machine)[hostnet/accessor-generator-plugin-lib

Generate get, set, add, remove methods on the fly.

10118.9k](/packages/hostnet-accessor-generator-plugin-lib)

PHPackages © 2026

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