Skip to content
CAI
Software that uses CAICheck a score

php-fig/log

38.8

Weak · 19 September 2026

265

lines of production code

PHP

primary language

1

measurement over time

CAI band scale
CAI lens gauges

What this system is

This system is the PSR-3 logging standard library for PHP, providing the foundational interfaces and contracts for application logging. It includes concrete implementations such as the NullLogger and AbstractLogger, along with supporting traits and interfaces like LoggerAware. The package enforces a minimum PHP 8.0 requirement and utilizes PSR-4 autoloading to integrate these logging components into PHP applications.

Features

PSR-3 Logger interface and implementations added to src

The src directory now contains the PSR-3 logging standard components, including the LoggerInterface, LogLevel constants, AbstractLogger, NullLogger, LoggerTrait, and LoggerAwareInterface/Trait. This provides the foundational logging contracts and a no-op logger implementation for use within the application.

src · high confidence

Dependencies

Update package metadata and require PHP 8.0

The package name has been updated from 'php-fig/log' to 'psr/log', and the author homepage URL has been switched to HTTPS. The package now explicitly requires PHP 8.0.0 or higher, adds PSR-4 autoloading configuration, and includes metadata such as keywords, license, and homepage.

(dependencies) · high confidence

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Baseline

  • First survey — no prior run to compare against. CAI 39.

Lenses

  • Code Health 100
  • Architecture 69
  • Maturity 32
  • Readiness 17
  • Security 100

Changes since last survey

  • 97 commits — 90 feature/other, 7 fixes

By area

  • Psr/Log — 45 commits
  • (repo) — 30 commits
  • (root) — 20 commits
  • src/LoggerAwareInterface.php — 1 commit
  • src/LoggerInterface.php — 1 commit

Notable commits

  • fix: Fix new assertions, refs #16
  • fix: Fix phpunit compatibility
  • fix: Fix test suite
  • fix: Fix the phpdoc of LoggerAwareTrait::$logger
  • fix: PSR-2 fixes
  • fix: Revert "Clarify type of 2nd argument context"
  • fix: fix white space
  • change: Add "exception"-context array key to docs
  • change: Add LoggerAwareInterface and require virtual package
  • change: Add README
  • change: Add autoload & license
  • change: Add homepage.
  • change: Add interface and null logger
  • change: Add package keywords
  • change: Add parameter types.
  • change: Add property type.
  • change: Add return types.
  • change: Add test suite, exceptions, license
  • change: Added assertions for test cases
  • change: Added the branch alias for master
  • …and 77 more

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

php-fig/log was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 19 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit f16e1d5863e37f8d8c2a01719f5b34baa2b714d3 — the exact code this score is about.
  • Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-13a154b7f5d1.