/minicli

Simple PHP CLI framework

Primary LanguagePHPMIT LicenseMIT

Minicli

Scrutinizer Code Quality Code Coverage Type Coverage MIT Software License Minimum PHP Version

Simple PHP CLI (Command Line Interface).

Minicli commands:

  • ./minicli {help} -> display help command
  • ./minicli hello {world} -> display "Hello {world}" message
  • ./minicli {whatever} -> display an error message

Some make tasks to execute commands inside the docker container such:

  • make bash -> access into the bash
  • make csfix -> run the code style fixer (.php_cs)
  • make composer ARGS="require phpunit/phpunit" -> run composer
  • make tests ARGS="--filter AppTest" -> run PHPUnit

src: https://dev.to/erikaheidi/bootstrapping-a-cli-php-application-in-vanilla-php-4ee

Thank you so much @erikaheidi :)