PHPackages                             kuborgh/symfony-traits - 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. kuborgh/symfony-traits

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

kuborgh/symfony-traits
======================

A collection of traits to inject symfony services

011PHP

Since Jun 15Pushed 10y ago2 watchersCompare

[ Source](https://github.com/kuborgh/symfony-traits)[ Packagist](https://packagist.org/packages/kuborgh/symfony-traits)[ RSS](/packages/kuborgh-symfony-traits/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

symfony-traits
==============

[](#symfony-traits)

Collection of traits to inject common symfony services

Usage
-----

[](#usage)

### Logger

[](#logger)

```
use LoggerTrait;
...
try {
    doSomeStuff($id);
} catch (\Exception $exc) {
    // Log Exception text and type in context
    $logCtx = $this->logContextFromException($exc);
    // Add additional specific context
    $logCtx['id'] = $id;
    // Log away
    $this->logError('Error in doing some stuff', $logCtx);
}
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

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/4929980?v=4)[Hannes Giesenow](/maintainers/hgiesenow)[@hgiesenow](https://github.com/hgiesenow)

---

Top Contributors

[![hgiesenow](https://avatars.githubusercontent.com/u/4929980?v=4)](https://github.com/hgiesenow "hgiesenow (6 commits)")

### Embed Badge

![Health badge](/badges/kuborgh-symfony-traits/health.svg)

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

###  Alternatives

[jahvi/magento2-copy-theme-override

Magento 2 command to automatically copy files into active theme

124.5k](/packages/jahvi-magento2-copy-theme-override)

PHPackages © 2026

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