-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate FidryConsole #1702
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While working mostly CLI centric applications (Box, PHP-Scoper, Infection), I have always been frustrated with a couple of points regarding
symfony/console
.After years of trying to ignore this, it finally reached the tipping point and I decided to write
fidry/console
.The initial promise is:
null|string|list<string>
. With the typed API, you can easily coerce it to a natural value (PHPStan/Psalm compatible) whilst failing gracefully, providing a helpful message to the user when the input is incorrect.IO
object,CommandTester
,ApplicationTester
) to make your life easier.I designed the library with goal to merge it back to Symfony eventually and I'm working with @chalasr for that, but that will realistically take a while. As a result though, the library can be seen as a very thing layer on top of the Symfony console as opposed to competing with it.
Anyway, the library has now been merged both in Box (see box-project/box#646) and PHP-Scoper (humbug/php-scoper#480 – earlier version and less clean probably in terms of PR). I'll be happy to do a PR for Infection as well if you are interested.
The text was updated successfully, but these errors were encountered: