PHPackages                             noflash/composer\_psr3 - 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. noflash/composer\_psr3

AbandonedArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

noflash/composer\_psr3
======================

PSR-3 complaint logger for use with Composer IOInterface

03231PHP

Since Feb 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kiler129/ComposerPsr3)[ Packagist](https://packagist.org/packages/noflash/composer_psr3)[ RSS](/packages/noflash-composer-psr3/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PROJECT ARCHIVED
================

[](#project-archived)

While the code will (most likely) still work with Composer v1, this project is not maintained since 2016.

---

Composer PSR-3 Logger [![Build Status](https://camo.githubusercontent.com/5ee5e34df5f06c2fc9d6dae546cee3e888f0ef4797ff652bd6c92ce4ee57c171/68747470733a2f2f7472617669732d63692e6f72672f6b696c65723132392f436f6d706f736572507372332e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kiler129/ComposerPsr3)
====================================================================================================================================================================================================================================================================================================================

[](#composer-psr-3-logger-)

Small, fast and PSR-3 compliant logging library useful with custom Composer scripts.

### Requirements

[](#requirements)

- PHP &gt;=5.6

### Installation

[](#installation)

Add package to `require-dev` and use ;-)

### Usage

[](#usage)

Initialize `Logger` object in your Composer hook and optionally set custom verbosity levels - evetyhing else is automatic.

Available methods:

- **emergency/alert/...(message, context)** - Every log level have method named after it. So if you want to log "warning" just use `Logger->warning("Be warned!")`. Second argument can be array with any information possible to represent as string by (formatted by [print\_r()](http://php.net/print_r)).
- **log(level, message, context)** - It have the same effect as methods described below, so calling `Logger->log("warning", "Be warned!")` produces the same result as example above.

### Configuration

[](#configuration)

Logger comes preconfigured by default, but allows to configure almost anything. List below specifies configuration methods along with default values (specified in brackets).

- **setLineFormat(&lt;%1$s&gt; \[%2$s\] %3$s \[%4$s\] \[%5$s\])** - How line should be formated. You can use 6 modifiers:
    - %1$s - date
    - %2$s - log level (uppercased)
    - %3$s - message text
    - %4$s - context (formatted by [print\_r()](http://php.net/print_r))
    - %1$d - unix timestamp
- **setDatetimeFormat(d.m.Y H:i:s)** - It accepts any [date()](http://php.net/date) compliant format.
- **setLevelVerbosity(level, value)** - In fact PSR-3 states custom log levels are forbidden, but this logger supports them. By default messages with custom level uses verbosity defined by `IOInterface::NORMAL`. This method allows setting custom one (and even change builtin levels verbosity, which is NOT recommended).

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 92.9% 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://www.gravatar.com/avatar/fa7072dc8b9e794c8e0be058496938c990e9b515f8b5c7c6193b79ca077e50b1?d=identicon)[kiler129](/maintainers/kiler129)

---

Top Contributors

[![kiler129](https://avatars.githubusercontent.com/u/1227834?v=4)](https://github.com/kiler129 "kiler129 (13 commits)")[![luklewluk](https://avatars.githubusercontent.com/u/6748300?v=4)](https://github.com/luklewluk "luklewluk (1 commits)")

### Embed Badge

![Health badge](/badges/noflash-composer-psr3/health.svg)

```
[![Health](https://phpackages.com/badges/noflash-composer-psr3/health.svg)](https://phpackages.com/packages/noflash-composer-psr3)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B10.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M262](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M315](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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