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

Polyfill Php81 Laravel Package

symfony/polyfill-php81

Symfony Polyfill for PHP 8.1 features on older runtimes: array_is_list, enum_exists, MYSQLI_REFRESH_REPLICA constant, ReturnTypeWillChange, and CURLStringFile (PHP 7.4+). Part of the Symfony Polyfill suite, MIT licensed.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: This polyfill seamlessly integrates with Laravel applications targeting PHP 7.4 or lower while leveraging PHP 8.1 features. As a standalone Composer dependency with no external runtime requirements, it aligns perfectly with Laravel's dependency-driven architecture and Symfony component ecosystem.
Integration feasibility: High. Requires only composer require symfony/polyfill-php81 with zero configuration. The polyfill automatically detects native PHP implementations and only backports missing features, ensuring compatibility with existing codebases.
Technical risk: Very low. The package is battle-tested in Symfony ecosystems with 888 GitHub stars and 4.68 quality score. Primary risks include potential conflicts with custom polyfill implementations (e.g., manual array_is_list helpers) and edge cases in CURLStringFile for PHP <7.4.
Key questions:

  • What specific PHP 8.1 features are critical for the project's
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
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
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