symfony/polyfill-php85
Symfony Polyfill for PHP 8.5: backports upcoming core features for older PHP versions, including get_error_handler/get_exception_handler, NoDiscard, array_first/array_last, and the DelayedTargetValidation attribute.
Architecture fit: The package provides lightweight, non-intrusive polyfills for speculative PHP 8.5 features via Composer. It aligns with Symfony's polyfill pattern but targets unreleased PHP functionality. Integration requires explicit usage of experimental functions, making it suitable only for projects intentionally targeting future PHP versions.
Integration feasibility: High for Composer-based projects due to simple installation, but low practical utility since PHP 8.5 doesn't exist yet. Zero dependents indicates no real-world adoption, as features are RFC drafts with no guarantee of implementation.
Technical risk: High. RFCs for features (e.g., array_first, DelayedTargetValidation) are unstable and may be rejected or altered before PHP 8.5 release. Code relying on polyfilled features could become obsolete or require major refactoring if RFCs change.
Key questions:
How can I help you explore Laravel packages today?