PHPackages                             aotd/yii2-psr3-component - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. aotd/yii2-psr3-component

Abandoned → [samdark/yii2-psr-log-target](/?search=samdark%2Fyii2-psr-log-target)ArchivedYii2-extension[Logging &amp; Monitoring](/categories/logging)

aotd/yii2-psr3-component
========================

Allows you to use the Yii2 logger with libraries that are expecting a PSR-3 compatible logger

1.1(8y ago)02.4k1MITPHPPHP &gt;=5.4.0

Since Aug 31Pushed 8y ago1 watchersCompare

[ Source](https://github.com/aotd1/yii2-psr3-component)[ Packagist](https://packagist.org/packages/aotd/yii2-psr3-component)[ Docs](https://github.com/aotd1/yii2-psr3-component)[ RSS](/packages/aotd-yii2-psr3-component/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Yii2 PSR3 Logging Adapter
=========================

[](#yii2-psr3-logging-adapter)

Simple adapter class that allow third party components use fully PSR-3 compatible adapter.

Note that Yii2 has a limited number of logging levels so this class will attempt to use the closest Yii2 equivalent for the provided PSR3 level.

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

[](#installation)

```
composer require aotd/yii2-psr3-component dev-master

```

Usage
-----

[](#usage)

```
  'components' => array(
     'psr3log' => array(
         'class' => 'aotd\\PSR3LogAdapter\\Logger',
     ),
  ),
```

and use it somewhere in your code:

```
$foo = newSomeClassThatNeedsPsr3(Yii::$app->psr3log);
```

Optionally you can remap log levels between PSR-3 and Yii:

```
  'components' => [
     'psr3log' => [
         'class' => 'aotd\\PSR3LogAdapter\\Logger',
         'logLevelMap' => [
             'emergency' => YiiLogger::LEVEL_ERROR,
             'alert' => YiiLogger::LEVEL_ERROR,
             'critical' => YiiLogger::LEVEL_ERROR,
             'error' => YiiLogger::LEVEL_ERROR,
             'warning' => YiiLogger::LEVEL_WARNING,
             'notice' => YiiLogger::LEVEL_INFO,
             'info' => YiiLogger::LEVEL_INFO,
             'debug' => YiiLogger::LEVEL_TRACE,
         ],
     ],
  ],
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~763 days

Total

2

Last Release

3143d ago

### Community

Maintainers

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

---

Top Contributors

[![aotd1](https://avatars.githubusercontent.com/u/1684688?v=4)](https://github.com/aotd1 "aotd1 (2 commits)")[![vtvz](https://avatars.githubusercontent.com/u/11929252?v=4)](https://github.com/vtvz "vtvz (1 commits)")

---

Tags

logpsr-3loggeryii2

### Embed Badge

![Health badge](/badges/aotd-yii2-psr3-component/health.svg)

```
[![Health](https://phpackages.com/badges/aotd-yii2-psr3-component/health.svg)](https://phpackages.com/packages/aotd-yii2-psr3-component)
```

###  Alternatives

[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[bitrix-expert/monolog-adapter

Monolog adapter for Bitrix CMS

6566.3k](/packages/bitrix-expert-monolog-adapter)[lav45/yii2-activity-logger

Tools to store user activity log for Yii2

3456.3k](/packages/lav45-yii2-activity-logger)[wa72/simplelogger

Wa72SimpleLogger is a collection of very simple loggers implementing \\Psr\\Log\\LoggerInterface (PSR-3)

13246.6k13](/packages/wa72-simplelogger)[atrapalo/monolog-elasticsearch

A Monolog handler and formatter that makes use of the elasticsearch/elasticsearch package

1123.0k](/packages/atrapalo-monolog-elasticsearch)

PHPackages © 2026

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