3 ms·
..but why? PHP can do all of this out of the box.
by Cozumel 9y ago
..but why? PHP can do all of this out of the box.
- webNeat 9y agoCan you define and parse command line arguments that easy using raw PHP ?
- TazeTSchnitzel 9y agohttps://php.net/getopt https://php.net/getopt
- webNeat 9y agoI know this one, but it's not as powerful as using something like https://github.com/tarsana/syntax https://github.com/tarsana/syntax, especially if the arguments are very complicated like here https://github.com/webNeat/lumen-generators#resource-generator https://github.com/webNeat/lumen-generators#resource-generat... and need validation.
- wmichelin 9y agoYes. http://php.net/manual/en/reserved.variables.argv.php http://php.net/manual/en/reserved.variables.argv.php