PHPackages                             bacart/symfony-aware - 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. bacart/symfony-aware

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

bacart/symfony-aware
====================

Symfony service awareness library

v1.2.5(8mo ago)6182MITPHPPHP &gt;=8.1

Since Sep 13Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/bacart/symfony-aware)[ Packagist](https://packagist.org/packages/bacart/symfony-aware)[ RSS](/packages/bacart-symfony-aware/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (22)Versions (21)Used By (0)

Symfony Aware
=============

[](#symfony-aware)

[![PHP from Packagist](https://camo.githubusercontent.com/754039e2dfe298e39a6cb74c56f9c9191d53755a6df3f0c7033c998d938c0099/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73796d666f6e792f73796d666f6e792e737667)](https://packagist.org/packages/bacart/symfony-aware)[![Latest Stable Version](https://camo.githubusercontent.com/d45c9a9c38d59bccacc31983633c2bf63374982f15113525a2856740726c0351/68747470733a2f2f706f7365722e707567782e6f72672f6261636172742f73796d666f6e792d61776172652f762f737461626c652e706e67)](https://packagist.org/packages/bacart/symfony-aware)[![Total Downloads](https://camo.githubusercontent.com/4e9a49619c23d6ee20c2cec06e3bd04adc95e361d238c5c23e3d2c5bc7de8ea5/68747470733a2f2f706f7365722e707567782e6f72672f6261636172742f73796d666f6e792d61776172652f646f776e6c6f6164732e737667)](https://packagist.org/packages/bacart/symfony-aware)[![License](https://camo.githubusercontent.com/bff2f14856c0322e0b8f7c083f24ce8fb07bb6619acde50e80a58cd8d03362ca/68747470733a2f2f706f7365722e707567782e6f72672f6261636172742f73796d666f6e792d61776172652f6c6963656e73652e737667)](LICENSE)

Symfony service awareness library.

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

[](#installation)

##### Using command line:

[](#using-command-line)

Run the following command, and you will get the latest version by [Packagist](https://packagist.org/packages/bacart/symfony-aware).

```
composer require bacart/symfony-aware
```

##### Using composer.json

[](#using-composerjson)

To use the newest (maybe unstable) version add following into your composer.json:

```
{
    "require": {
        "bacart/symfony-aware": "dev-master"
    }
}
```

Usage Example
-------------

[](#usage-example)

```
use Bacart\SymfonyAware\Interfaces\LoggerAwareInterface;
use Bacart\SymfonyAware\Traits\LoggerAwareTrait;

class SomeService implements LoggerAwareInterface
{
    use LoggerAwareTrait;

    public function someMethod(): void
    {
        $this->logger->info('Some information message');
    }
}
```

Example assumes that you are using an [autowiring](https://symfony.com/doc/current/service_container/autowiring.html).

License
-------

[](#license)

This project is released under the [MIT license](LICENSE).

About
-----

[](#about)

Project development is led by [Alex Bacart](https://github.com/alex-bacart).

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance62

Regular maintenance activity

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

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 ~75 days

Recently: every ~154 days

Total

20

Last Release

266d ago

Major Versions

v0.3.0 → v1.0.02022-11-14

PHP version history (3 changes)v0.1.0PHP ^8.0

v0.2.0PHP ^8.1

v0.2.2PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/19acb7d21f906591f8bbb311f293ef86e092127c641bd9c5bf64cbed001e0bae?d=identicon)[bacart](/maintainers/bacart)

---

Top Contributors

[![alex-bacart](https://avatars.githubusercontent.com/u/13940752?v=4)](https://github.com/alex-bacart "alex-bacart (25 commits)")

---

Tags

libraryphpsymfonyphpsymfonylibrary

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bacart-symfony-aware/health.svg)

```
[![Health](https://phpackages.com/badges/bacart-symfony-aware/health.svg)](https://phpackages.com/packages/bacart-symfony-aware)
```

PHPackages © 2026

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