symfony/deprecation-contracts
Provides the global trigger_deprecation() helper to emit standardized, silenced deprecation notices with package name and version. Works with custom error handlers (e.g., Symfony ErrorHandler) to catch and log deprecations in dev and production.
Architecture fit: The package integrates seamlessly with Laravel's existing Symfony ErrorHandler component, leveraging its built-in error handling for E_USER_DEPRECATED notices. As a dependency-free global function, it adds negligible architectural overhead and aligns with Laravel's component-based design.
Integration feasibility: High. Requires only composer require and minimal configuration to wire the Symfony ErrorHandler. No dependencies or complex setup, but proper error handler configuration is critical for visibility
How can I help you explore Laravel packages today?