fr3d/psr3-message-assertions
PHPUnit helper to assert your application’s PSR-3 log messages follow the Logger spec. Use the included TestLogger as a logger dependency during tests to validate message formatting and context placeholders. Composer-installable, BSD-2-Clause.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mpdf/psr-log-aware-trait | 0.85 | Provides a PSR-3 LoggerAwareTrait implementation used by mPDF components. Adds simple logger injection and access following the psr/log LoggerAwareInterface, making it easy to add optional logging support without duplicating boilerplate across classes. | 64 | 64 | 1 | 3M | 1 | 0.5 | 55.2 | — | — | |
| psr-mock/http-message-implementation | 0.84 | Lightweight PSR-7 HTTP message implementation mock for testing libraries and SDKs without hard dependencies. Strictly follows PSR behavior and includes a developer-friendly API to debug and fix failing tests faster. For dev use only (PHP 8.1+). | 0 | 0 | 1 | 4K | 0 | 0.6 | 49.0 | MIT | 2 years ago | |
| bugsnag/bugsnag-psr-logger | 0.84 | PSR-3 logger implementation for Bugsnag. Provides BugsnagLogger to send notifications for messages above a configurable level, plus MultiLogger to fan out logs to Bugsnag and other PSR-3 loggers. Built on bugsnag-php. | 321 | 321 | 6 | 806K | 0 | 6.2 | 47.0 | MIT | 4 years ago | |
| analog/analog | 0.83 | Minimal PHP logging library built around closures for flexible handlers. Use it as a static logger or via the PSR-3 compatible Analog\Logger wrapper. Ships with ready-made handlers (files, stderr, FirePHP, variables) and supports custom handlers for any backend. | 343 | 350 | 48 | 24K | 1 | 8.7 | 25.6 | MIT | 2 years ago | |
| spiral/logger | 0.83 | Spiral Logger provides a LogFactory and global log listeners for building and wiring PSR-3 compatible loggers in Spiral apps. Lightweight package with strong static analysis, tests, and CI support. | 14 | 14 | 0 | 733K | 0 | 4.3 | 55.3 | MIT | 6 years ago | |
| averor/simple-logger | 0.83 | Simple, lightweight logger for PHP/Laravel apps. Provides an easy API to write log messages with minimal setup, useful for small projects, debugging, or when you want straightforward logging without extra configuration. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| http-interop/http-factory-tests | 0.82 | Unit tests for HTTP Factory implementations. Add test suite config to phpunit.xml and define factory class constants, then validate your PSR-17 request, response, server request, stream, uploaded file, and URI factories. | 11 | 12 | 8 | 20K | 0 | 20.1 | 51.7 | MIT | 1 month ago | |
| loophp/psr17 | 0.82 | loophp/psr17 provides a PSR-17 HTTP message factory implementation for PHP, helping you create PSR-7 requests, responses, streams, URIs, and uploaded files in a standards-compliant way. Suitable for libraries and middleware needing PSR factories. | 1 | 1 | 0 | 8K | 1 | 3.5 | 54.2 | MIT | 3 years ago | |
| psr-mock/http-factory-implementation | 0.82 | Lightweight PSR-17/PSR-7 HTTP factory/message mock implementation for PHP 8.1+. Built for SDKs and libraries to test against PSR interfaces without hard deps, with strict PSR compliance and helpful debugging API. | 0 | 0 | 0 | 4K | 0 | 0.6 | 50.0 | MIT | 2 years ago | |
| fig/log-test | 0.82 | Testing utilities for PSR-3 (psr/log): includes LoggerInterfaceTest for verifying LoggerInterface compliance and TestLogger mock for unit tests. Intended for dev/test use, with versions aligned to psr/log 1.x–3.x compatibility. | 10 | 10 | 6 | 179K | 0 | 1.8 | 55.4 | MIT | 11 months ago | |
| samdark/yii2-psr-log-target | 0.82 | Yii2 log target that forwards Yii log messages to any PSR-3 logger (e.g., Monolog). Configure PsrTarget in the log component, choose levels, and optionally add real event timestamps to the log context for accurate timing. | 84 | 84 | 14 | 67K | 2 | 5.4 | 41.1 | BSD-3-Clause | 2 years ago | |
| psr/log | 0.82 | PSR-3 logging interfaces for PHP. Provides LoggerInterface, traits, and related classes to standardize how libraries accept and emit log messages. Not a logger implementation—use it to type-hint a logger or build your own PSR-3 compliant logger. | 10,413 | 10,601 | 194 | 30M | 0 | 34.6 | 47.9 | MIT | 2 years ago | |
| phrity/logger-console | 0.82 | PSR-3 compatible console logger for local tests and CLI apps. Configure verbosity levels (quiet to debug), customize output format with placeholders (datetime, level, message, context), and optionally read verbosity from CLI flags like -q/-v/-vv/-vvv. | 0 | 0 | 0 | 216 | 0 | 18.7 | 37.3 | MIT | 1 month ago | |
| psr-discovery/log-implementations | 0.81 | Discover available PSR-3 logger implementations at runtime without hard dependencies. Searches for well-known classes and returns the first compatible LoggerInterface instance, ideal for SDKs and libraries; supports multiple popular loggers and mocking/testing options. | 7 | 7 | 0 | 631K | 0 | 0.9 | 55.3 | MIT | 1 year ago | |
| lasso/multilog-bundle | 0.81 | Symfony bundle for managing multiple Monolog loggers in one application. Configure separate channels, handlers, and log files, then inject the logger you need so different services can write to independent logs without duplicating Monolog setup. | 0 | 0 | 0 | 0 | 1 | 0.1 | — | LGPL-3.0 | 12 years ago | |
| php-http/psr7-integration-tests | 0.81 | A PHPUnit-based integration test suite for PSR-7 HTTP message implementations. It verifies requests, responses, streams, URIs, and headers against the PSR-7 specification, helping libraries like Guzzle, Laminas, Slim, and Nyholm ensure compliance. | 41 | 42 | 23 | 3K | 1 | 22.8 | 30.1 | MIT | 2 weeks ago | |
| eur-rsm/laravel-logging | 0.81 | A Laravel logging package from eur-rsm that helps streamline log configuration and management within Laravel applications. It integrates with Laravel’s logging system to support consistent, maintainable application logs and a cleaner, more organized logging setup across environments. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| staabm/phpstan-psr3 | 0.80 | PHPStan rules that detect PSR-3 logger misuse and security pitfalls: invalid placeholders, context issues, and message formatting mistakes. Works with psr/log, Monolog, Laravel (illuminate/log, LogManager), and REDAXO rex_logger. | 23 | 23 | 1 | 187K | 1 | 2.0 | 55.6 | MIT | 1 year ago | |
| unreal4u/dummy-logger | 0.80 | A lightweight dummy logger for Laravel and PHP that implements the logging interface while discarding every message. Ideal for tests, benchmarks, and environments where you need a silent, zero-overhead stand-in for a real PSR-3 logger without changing existing code. | 3 | 3 | 2 | 881 | 0 | 0.1 | 32.4 | — | 8 years ago | |
| yiisoft/log | 0.80 | PSR-3-compatible logging library for Yii with configurable targets, message filtering, formatting, and context support. Route logs to files, syslog, email, or custom targets with flexible severity handling. | 43 | 46 | 24 | 29K | 3 | 9.6 | 42.6 | BSD-3-Clause | 7 months ago |
How can I help you explore Laravel packages today?