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

Psr Log Aware Trait Laravel Package

mpdf/psr-log-aware-trait

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

This package supports decisions around third-party integration compatibility, particularly when working with libraries like mpdf that require PSR-3 logging but may conflict with version-specific implementations. It enables a "buy" strategy for cross-version logging support, avoiding custom adapter development and reducing technical debt. For roadmaps involving multi-vendor tooling (e.g., PDF generation, API integrations), it ensures seamless logging consistency without reinventing the wheel, accelerating feature delivery while maintaining observability standards.

When to Consider This Package

Adopt this package when integrating mpdf or similar tools that explicitly depend on PSR-3 version flexibility, especially in Laravel projects where logging consistency across dependencies is critical. It’s ideal for scenarios where multiple third-party libraries impose conflicting PSR-3 version requirements, and a lightweight, non-invasive solution is needed. Avoid it if your project uses a single, unified PSR-3 logger (e.g., Laravel’s default Monolog) with no conflicting dependencies, or if the package’s low activity (63 stars, 0.315 score) raises concerns about long-term maintenance—always verify compatibility with your PHP version and check community support before adoption.

How to Pitch It (Stakeholders)

To executives: "This tiny

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
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
uri-template/tests