flynsarmy/slim-monolog
Monolog integration for the Slim PHP framework. Add PSR-3 logging to your Slim app with minimal setup, route messages through Monolog handlers, and get configurable, structured logging for requests, errors, and custom events.
Monolog\Logger as a PSR-3 LoggerInterface in the Slim container. That is roughly 10–20 lines of factory code your team owns forever instead of a dependency you inherit. This is the primary decision the package informs, and it argues against adoption.Log facade and config/logging.php channels, so there is no Laravel use case. Verify the repo identity before any diligence — the repository is unresolved, which is itself a signal.Consider it only when:
composer.lock and runtime are already frozen (PHP 5.x/7.0-era, Monolog 1.x) and you are not accepting new dependencies elsewhere either.Look elsewhere — or write the wiring yourself — when:
LoggerInterface in the container and inject Monolog directly. This is the default recommendation.To executives: This is a low-value, non-trivial-risk dependency. It is a thin logging adapter for the Slim micro-framework with no releases since 2015, which means no security patches and no support for modern PHP or Monolog versions. Replacing it is a matter of hours, not sprints — so the recommendation is to decline adoption and, where it already exists, contain and retire it. It also has no bearing on our Laravel work, which already includes logging out of the box.
To engineering: Don't take the dependency. Bind a Monolog Logger to Psr\Log\LoggerInterface in the container, inject the interface everywhere, and configure handlers (stderr/JSON for containers, rotating files for VMs) per environment. That gives us the same outcome with full control over handler config, log levels, and context processors. If a legacy Slim service already uses the package, wrap it behind the same factory so the swap is a one-file change at the next touch — and flag it in the dependency inventory as unmaintained so it doesn't quietly become load-bearing.
Diligence caveat: The repository could not be resolved during this assessment. Confirm the actual source, license, and commit history before recording any decision in the dependency register.
How can I help you explore Laravel packages today?