PHPackages                             mpdf/psr-log-aware-trait - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. mpdf/psr-log-aware-trait

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

mpdf/psr-log-aware-trait
========================

Trait to allow support of different psr/log versions.

v3.0.0(3y ago)6434.0M—4.1%112MITPHP

Since May 3Pushed 3y agoCompare

[ Source](https://github.com/mpdf/psr-log-aware-trait)[ Packagist](https://packagist.org/packages/mpdf/psr-log-aware-trait)[ RSS](/packages/mpdf-psr-log-aware-trait/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (12)

psr-log-aware-trait
===================

[](#psr-log-aware-trait)

Trait to allow support of different psr/log versions.

By including this PsrLogAwareTrait, you can allow composer to resolve your PsrLogger version for you.

Use
---

[](#use)

Require the trait.

```
    composer require chromatic/psr-log-aware-trait

```

In your code, you no longer have to set a $logger property on your classes, since that comes with the trait, and you do not need to implement the `function setLogger()` method, since that also comes along with the trait.

```
use PsrLogAwareTrait;
```

Will allow you to call `setLogger()` in your classes and fulfil the requirements of the PsrLoggerAwareInterface implementation.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity61

Solid adoption and visibility

Community19

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% 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 ~0 days

Total

4

Last Release

1112d ago

Major Versions

v2.0.0 → 3.x-dev2023-05-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/9cc3aa40c77c31f002068ad6da34d2b3717655d19194987bf1bf54af0ba94fb1?d=identicon)[finwe](/maintainers/finwe)

---

Top Contributors

[![finwe](https://avatars.githubusercontent.com/u/195675?v=4)](https://github.com/finwe "finwe (4 commits)")[![markdorison](https://avatars.githubusercontent.com/u/20355?v=4)](https://github.com/markdorison "markdorison (2 commits)")[![apotek](https://avatars.githubusercontent.com/u/279278?v=4)](https://github.com/apotek "apotek (1 commits)")

### Embed Badge

![Health badge](/badges/mpdf-psr-log-aware-trait/health.svg)

```
[![Health](https://phpackages.com/badges/mpdf-psr-log-aware-trait/health.svg)](https://phpackages.com/packages/mpdf-psr-log-aware-trait)
```

###  Alternatives

[dvdoug/boxpacker

An implementation of the 3D (actually 4D) bin packing/knapsack problem (aka creating parcels by putting items into boxes)

6522.7M18](/packages/dvdoug-boxpacker)[cspray/annotated-container

Create Dependency Injection containers configured with PHP8 Attributes.

411.3k5](/packages/cspray-annotated-container)

PHPackages © 2026

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