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.
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.
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.
To executives: "This tiny
How can I help you explore Laravel packages today?