PHPackages                             fr3d/psr3-message-assertions - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. fr3d/psr3-message-assertions

ActiveLibrary[Testing &amp; Quality](/categories/testing)

fr3d/psr3-message-assertions
============================

Test your log messages are compliant with the PSR-3 specification

v0.3.2(6y ago)11.3k13BSD-2-ClausePHPPHP &gt;= 7.1

Since May 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Maks3w/Psr3MessageAssertions)[ Packagist](https://packagist.org/packages/fr3d/psr3-message-assertions)[ Docs](https://github.com/Maks3w/Psr3MessageAssertions)[ RSS](/packages/fr3d-psr3-message-assertions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (8)Used By (3)

PSR-3 Log message assertions
============================

[](#psr-3-log-message-assertions)

[![Build Status](https://camo.githubusercontent.com/73f331ac333ef476f0bd442895ef9fc6ae5be1eba0a64850d098706e5c2b1bfc/68747470733a2f2f7472617669732d63692e6f72672f4d616b7333772f507372334d657373616765417373657274696f6e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Maks3w/Psr3MessageAssertions)[![Coverage Status](https://camo.githubusercontent.com/24ff2bce9251294e80f54f5dc3bc26f5786b9ce5773e53c121324c31947e8b02/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4d616b7333772f507372334d657373616765417373657274696f6e732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/Maks3w/Psr3MessageAssertions?branch=master)

Test your log messages are compliant with the [PSR-3 (Logger) specification](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)

Installing via Composer
-----------------------

[](#installing-via-composer)

You can use [Composer](https://getcomposer.org) .

```
composer require fr3d/psr3-message-assertions
```

Usage in PHPUnit
----------------

[](#usage-in-phpunit)

Use [TestLogger.php](src/PhpUnit/TestLogger.php) as the logger dependency.

`TestLogger` will assert each log message is compliant with the PSR-3 Logger standard.

License
-------

[](#license)

Code licensed under BSD 2 clauses terms &amp; conditions.

See [LICENSE.txt](LICENSE.txt) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~349 days

Total

6

Last Release

2285d ago

PHP version history (3 changes)v0.1.0PHP &gt;= 5.3.0

v0.2.0PHP &gt;= 7.0

v0.3.0PHP &gt;= 7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/19fdc97ccc21fe2689824d70ab378dfd2364433eeaca3e9b321beeb68eb79106?d=identicon)[Maks3w](/maintainers/Maks3w)

---

Top Contributors

[![Maks3w](https://avatars.githubusercontent.com/u/1301698?v=4)](https://github.com/Maks3w "Maks3w (28 commits)")

---

Tags

assertionshacktoberfestloggerphppsr-3logpsr-3testingphpunittestassertion

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/fr3d-psr3-message-assertions/health.svg)

```
[![Health](https://phpackages.com/badges/fr3d-psr3-message-assertions/health.svg)](https://phpackages.com/packages/fr3d-psr3-message-assertions)
```

###  Alternatives

[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[fr3d/swagger-assertions

Test your API requests and responses against your swagger definition

138850.9k5](/packages/fr3d-swagger-assertions)[ta-tikoma/phpunit-architecture-test

Methods for testing application architecture

10745.9M13](/packages/ta-tikoma-phpunit-architecture-test)[php-mock/php-mock-phpunit

Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.

1718.2M399](/packages/php-mock-php-mock-phpunit)[zenstruck/assert

Standalone, lightweight, framework agnostic, test assertion library.

8214.9M8](/packages/zenstruck-assert)[colinodell/psr-testlogger

PSR-3 compliant test logger based on psr/log v1's, but compatible with v2 and v3 too!

1712.1M47](/packages/colinodell-psr-testlogger)

PHPackages © 2026

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