https://github.com/jitesoft/php-cli
CLI for PHP. Simple and easily extendable.
https://github.com/jitesoft/php-cli
cli cli-helper hacktoberfest jitesoft php8
Last synced: 14 days ago
JSON representation
CLI for PHP. Simple and easily extendable.
- Host: GitHub
- URL: https://github.com/jitesoft/php-cli
- Owner: jitesoft
- License: mit
- Created: 2021-06-19T13:30:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-19T19:11:02.000Z (over 4 years ago)
- Last Synced: 2025-01-19T22:50:57.163Z (12 months ago)
- Topics: cli, cli-helper, hacktoberfest, jitesoft, php8
- Language: PHP
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jitesoft/cli
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.