|
5 | 5 | [](https://packagist.org/packages/inhere/console) |
6 | 6 | [](https://github.com/inhere/php-console/actions) |
7 | 7 |
|
8 | | -A simple, full-featured php command line application library. |
| 8 | +Full-featured php command line application library. |
9 | 9 |
|
10 | 10 | Provide console parameter parsing, command run, color style output, user information interaction, and special format information display. |
11 | 11 |
|
12 | 12 | > **[中文README](./README.zh-CN.md)** |
13 | 13 |
|
14 | 14 | ## Command line preview |
15 | 15 |
|
16 | | - |
| 16 | + |
17 | 17 |
|
18 | 18 | ## Features |
19 | 19 |
|
20 | 20 | > Easy to use. Can be easily integrated into any existing project. |
21 | 21 |
|
22 | 22 | - Command line application, `controller`, `command` parsing run on the command line |
23 | | -- Support for setting aliases for commands. A command can have multiple aliases. Support command display/hide, enable/disable |
| 23 | +- Support for setting aliases for commands. A command can have multiple aliases. |
| 24 | +- Support command display/hide, enable/disable. |
24 | 25 | - Full-featured command line option parameter parsing (named parameters, short options `-s`, long options `--long`). |
25 | 26 | - The `input`, `output` of the command line, management, use |
26 | 27 | - Command method comments are automatically parsed as help information (by default, `@usage` `@arguments` `@options` `@example`) |
@@ -82,11 +83,30 @@ phpunit |
82 | 83 | phpdbg -dauto_globals_jit=Off -qrr /usr/local/bin/phpunit --coverage-text |
83 | 84 | ``` |
84 | 85 |
|
| 86 | +## Debuging |
| 87 | + |
| 88 | +You can set debug level by ENV `CONSOLE_DEBUG=level`, global option `--debug level` |
| 89 | + |
| 90 | +```bash |
| 91 | +# by ENV |
| 92 | +$ CONSOLE_DEBUG=4 php examples/app |
| 93 | +$ CONSOLE_DEBUG=5 php examples/app |
| 94 | +# by global options |
| 95 | +$ php examples/app --debug 4 |
| 96 | +``` |
| 97 | + |
| 98 | +## Project use |
| 99 | + |
| 100 | +Check out these projects, which use https://github.com/inhere/php-console : |
| 101 | + |
| 102 | +- [kite](https://github.com/inhere/kite) Kite is a tool for help development. |
| 103 | +- More, please see [github used by](https://github.com/inhere/php-console/network/dependents?package_id=UGFja2FnZS01NDI5NzMxOTI%3D) |
| 104 | + |
85 | 105 | ## License |
86 | 106 |
|
87 | 107 | [MIT](LICENSE) |
88 | 108 |
|
89 | | -## My other projects |
| 109 | +## My projects |
90 | 110 |
|
91 | 111 | - [inhere/php-validate](https://github.com/inhere/php-validate) A compact and full-featured php verification library |
92 | 112 | - [inhere/sroute](https://github.com/inhere/php-srouter) Lightweight and fast HTTP request routing library |
0 commit comments