smartassert/invokable-logger
A lightweight, invokable PSR-3 logger for PHP and Laravel. Wrap any logging callable so it can be used as a logger or invoked directly, keeping code decoupled and easy to test. Ideal for small services, jobs, and closures that need simple logging without a full framework stack.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 | |
| psr/log | 0.81 | 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 | |
| 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/test-support | 0.80 | yiisoft/test-support is a dev package that simplifies testing application elements depending on PSR interfaces, providing ready-made test doubles and helpers for PHP 8.0-8.5 projects. | 15 | 15 | 11 | 20K | 3 | 22.4 | 50.6 | BSD-3-Clause | 2 weeks ago | |
| averor/simple-logger | 0.80 | 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 | — | — | — | |
| mpdf/psr-log-aware-trait | 0.80 | 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 | — | — | |
| zendframework/zend-log | 0.79 | Zend Log is a PHP logging component for writing messages to multiple backends (files, syslog, databases, email) with flexible formatting, filters, and priorities. Part of Zend Framework, it helps you capture, route, and manage application logs reliably. | 60 | 59 | 48 | 29K | 8 | 4.4 | 27.4 | BSD-3-Clause | 6 years ago | |
| colinodell/psr-testlogger | 0.79 | A lightweight PSR-3 TestLogger for unit tests. Capture log records in memory, inspect messages, contexts, and levels, and make assertions without external handlers. Helpful for verifying expected logging behavior in PHPUnit and other test suites. | 18 | 18 | 5 | 592K | 0 | 5.7 | 57.2 | MIT | 1 year ago | |
| psr-discovery/log-implementations | 0.79 | 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 | |
| yiisoft/log | 0.79 | 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 | |
| fr3d/psr3-message-assertions | 0.79 | 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. | 1 | 2 | 1 | 24 | 0 | 1.5 | 15.4 | NOASSERTION | 6 years ago | |
| staabm/phpstan-psr3 | 0.79 | 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 |
How can I help you explore Laravel packages today?