phabel
unleash-client-php
phabel | unleash-client-php | |
---|---|---|
6 | 3 | |
242 | 54 | |
0.8% | - | |
0.0 | 7.2 | |
over 1 year ago | 16 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
unleash-client-php
-
Laravel Pennant: simple and lightweight feature flag package
This is a nice feature to have, but doesn't have provide "repeatable randomness", meaning, if you want 10% of your users with the flag enabled, the same 10% should be selected every time. If you're A/B testing a new feature that spans multiple API endpoints, for example, all endpoints should be using the same feature. The Unleash library provides this functionality, however.
-
[Library Release] Unleash PHP SDK
It's available at https://github.com/Unleash/unleash-client-php.
-
Phabel: Convert PHP8 syntax into lower versions
That's what projects like these are great for. I always release my packages for all currently supported versions. When I was writing unleash/client I didn't really want to write 7.3 code so I started researching my options. Long story short the code is written in PHP 8 but can be installed on 7.3+ thanks to Rector (though it was a little bumpy from time to time, but u/Tomas_Votruba and others from the team are really fast when there's an issue).
What are some alternatives?
polyfill - PHP polyfills
unleash-bundle - An Unleash bundle for Symfony applications to provide an easy way to use feature flags
php-tokio - Use any async Rust library from PHP!
monorepo-split-github-action - Github Action for Monorepo Split
rector-downgrade-php - Rector downgrade rules for PHP
GitlabDB - A PHP Class that reads JSON file as a database. Use for sample DBs using Gitlab API inspire from donjajo/jsondb
Composer - Dependency Manager for PHP
Client - GitLab API v4 client for PHP
php-async - Experimental asynchronous components for PHP
pennant - A simple, lightweight library for managing feature flags.
ext-php-rs - Bindings for the Zend API to build PHP extensions natively in Rust.
Enum - PHP 7.1 enum implementation