jitesoft / cli
CLI for PHP. Simple and easily extendable.
Fund package maintenance!
jitesoft
Opencollective
Requires
- php: >=8
- jitesoft/container: ^5.0.0
Requires (Dev)
- phpunit/phpunit: >=10.0.x-dev
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^3.6
This package is auto-updated.
Last update: 2024-10-20 02:53:21 UTC
README
Simple multi-command CLI helper/kernel with parsing capabilities and automatically created help/usage output.
Creating new commands is easily done by creating a new class inheriting the abstract Command class and implement
the process
method.
Commands are auto-resolved via dependency injection allowing the kernel to automatically resolve dependencies
for the Command via constructor injection.
For a simple example, take a look in the example
folder. Further documentation will be added later on.