Re:Build command line apps using PHP 7
by troels on Sunday September 03, 2017 @04:07PM
(#15163569)
Symfony already provides this functionality. I fail to see why I would use this project over the de-facto standard PHP framework?
[ Parent
| on HN ]
Re:Build command line apps using PHP 7
by ceejayoz on Sunday September 03, 2017 @04:09PM
(#15163579)
Yeah, this does seem to be largely duplicating symfony/console (which anyone using Laravel also has some experience with, incidentally).
My first intention was to extend Symfony/Console and make it more easy to use, but the main pain points were defining and parsing command line args, mocking stdin and filesystem, ...
Re:Build command line apps using PHP 7
by qualitytime on Sunday September 03, 2017 @04:09PM
(#15163582)
I wouldn't use either as PHP comes with "batteries included".
Re:Build command line apps using PHP 7
by ceejayoz on Sunday September 03, 2017 @04:14PM
(#15163605)
Batteries are nice, but it's handy to have a breadboard and some wiring. For a super-simple CLI script without interaction, plain PHP's fine, but if you're making something interactive that's prompting, using color codes, logging, etc., a framework's pretty handy - especially if it's for a larger app that's got models and services to interact with.