phabel
polyfill
phabel | polyfill | |
---|---|---|
6 | 3 | |
242 | 2,578 | |
0.8% | 0.9% | |
0.0 | 7.2 | |
over 1 year ago | 9 days ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
phabel
-
PHP-Tokio – Use any async Rust library from PHP
Yeah I'm aware of Rector, there's a funny story here, I actually created https://github.com/phabelio/phabel which does the same thing as Rector, but @ installation time (fully integrated with Composer!): I created because I simply did not know about its existence, or else I would've just used it, instead :)
Rector is a very nice project, but I still haven't gotten around to integrating it into our codebase at work, because it uses phpstan instead of Psalm, and apart from being slower than Psalm, phpstan kept having various issues and crashes while scanning our codebase, unlike Psalm which mostly worked out of the box (I even became maintainer of Psalm, due to the large amount of additional performance improvements I added due to our needs @ work).
-
Can We Develop in PHP 8.1 and Still Output PHP 7.4 Code?
I have found this: https://github.com/phabelio/phabel but it only handles up to PHP 8.0.
- Phabel: Convert PHP8 syntax into lower versions
- Phabel: Convert PHP8 features into lower versions
- Async/await support in PHP with a transpiler
- Phabel PHP transpiler – Write and deploy modern PHP 8 code, today
polyfill
-
How Symfony components power Drupal’s drive to new frontiers
“The Polyfill Iconv component provides a native PHP implementation of the php.net/iconv functions (short of [ob_iconv_handler](https://php.net/ob-iconv-handler)). More information can be found in the main Polyfill README.”
- Can We Develop in PHP 8.1 and Still Output PHP 7.4 Code?
-
Today marks the first time my product does not support PHP versions that reached EOL
FYI array_key_first and such were easily polyfilled in older versions https://github.com/symfony/polyfill but it doesn't matter now! 😅
What are some alternatives?
php-tokio - Use any async Rust library from PHP!
polyfill-ctype - Symfony polyfill for ctype functions
rector-downgrade-php - Rector downgrade rules for PHP
polyfill-mbstring - Symfony polyfill for the Mbstring extension
Composer - Dependency Manager for PHP
Enum - PHP 7.1 enum implementation
php-async - Experimental asynchronous components for PHP
square-one - Modern Tribe's legacy WordPress framework for the classic editor.
ext-php-rs - Bindings for the Zend API to build PHP extensions natively in Rust.
setup-php - GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.