Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpstan Psr3 Laravel Package

staabm/phpstan-psr3

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Validates logging context types and message placeholders during development, preventing runtime errors in production and improving system reliability
  • Enables consistent logging standards across teams without manual enforcement, reducing technical debt and code review overhead
  • Cost-effective "buy" alternative to building custom static analysis rules for PSR-3 logging (low maintenance effort vs. in-house solution)
  • Supports roadmap priorities around observability and proactive error prevention by ensuring log data integrity for monitoring/debugging systems

When to Consider This Package

  • Adopt when your codebase uses PSR-3-compliant logging (e.g., Monolog) and PHPStan for static analysis
  • When structured context data (e.g., JSON logs) requires strict key validation and placeholder safety checks
  • When your team prioritizes catching errors during development rather than runtime debugging
  • Avoid if: using non-PSR-3 logging interfaces, no PHPStan setup, or if logging is handled by a custom implementation not covered by PSR-3 standards

How to Pitch It (Stakeholders)

  • Executives: "This package eliminates costly logging-related production incidents by validating log messages and context data before deployment. It reduces debugging time, improves system reliability, and ensures your observability tools work correctly—without impacting runtime performance or requiring developer workflow changes."
  • Engineering: "Adds precise type checks for PSR-3 logger calls, catching placeholder/context mismatches during static analysis. Installs in minutes via PHPStan config with zero runtime overhead. Works seamlessly with existing logging libraries like Monolog and requires no code modifications."
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation