PHPackages                             yiisoft/yii2-psr-log-source - 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. [Framework](/categories/framework)
4. /
5. yiisoft/yii2-psr-log-source

ActiveYii2-extension[Framework](/categories/framework)

yiisoft/yii2-psr-log-source
===========================

A PSR LoggerInterface implementation that routes to the Yii logger

v1.0.0(3y ago)922.0k↓56.4%2[2 PRs](https://github.com/yiisoft/yii2-psr-log-source/pulls)BSD-3-ClausePHPPHP &gt;=8CI passing

Since Oct 4Pushed 1w ago8 watchersCompare

[ Source](https://github.com/yiisoft/yii2-psr-log-source)[ Packagist](https://packagist.org/packages/yiisoft/yii2-psr-log-source)[ GitHub Sponsors](https://github.com/yiisoft)[ Fund](https://opencollective.com/yiisoft)[ RSS](/packages/yiisoft-yii2-psr-log-source/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

Yii2 Psr Log Source
===================

[](#yii2-psr-log-source)

This simple library implements a PSR compatible logger that routes all messages to a Yii Logger. Use this if you have a library that needs such a logger and you want to forward the messages to your existing Logger.

Logger adapter
--------------

[](#logger-adapter)

The `Logger` adapter class takes a Yii `Logger` object and implements the `LoggerInterface`.

DynamicLogger
-------------

[](#dynamiclogger)

Since Yii2 uses mutability a lot, the `Logger` adapter might hold a reference to an old Yii `Logger`. To work properly with the Service Locator pattern we must use it on every call. `DynamicLogger` does this while internally using the `Logger`and recreating it when needed.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance64

Regular maintenance activity

Popularity34

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.8% 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

Unknown

Total

1

Last Release

1368d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/261a6249c6f605f3956a2fae40fbb813f6b2e1e6f2bf806180c851a965426e54?d=identicon)[cebe](/maintainers/cebe)

![](https://www.gravatar.com/avatar/fc29e4e7068a00fe9b9db37b8aadda1db6020adcacef810461e47b99c2b150e6?d=identicon)[samdark](/maintainers/samdark)

![](https://www.gravatar.com/avatar/ccb75e3312d6bd454ea445ea308139fd185a4ca906ca5df21cc66e6a35de25a3?d=identicon)[SilverFire](/maintainers/SilverFire)

![](https://www.gravatar.com/avatar/99106256c24a8cb23871b99fa90e48f37f1aa71608c185759b7d2a88683a5918?d=identicon)[hiqsol](/maintainers/hiqsol)

---

Top Contributors

[![SamMousa](https://avatars.githubusercontent.com/u/547021?v=4)](https://github.com/SamMousa "SamMousa (7 commits)")[![Arhell](https://avatars.githubusercontent.com/u/26163841?v=4)](https://github.com/Arhell "Arhell (3 commits)")[![bizley](https://avatars.githubusercontent.com/u/8577314?v=4)](https://github.com/bizley "bizley (2 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (1 commits)")

---

Tags

logloggingpsryii2psr-3symfonyyii2loggerinterface

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yiisoft-yii2-psr-log-source/health.svg)

```
[![Health](https://phpackages.com/badges/yiisoft-yii2-psr-log-source/health.svg)](https://phpackages.com/packages/yiisoft-yii2-psr-log-source)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[yiisoft/yii2-symfonymailer

The SymfonyMailer integration for the Yii framework

494.1M73](/packages/yiisoft-yii2-symfonymailer)

PHPackages © 2026

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