NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2610 most downloaded on Packagist
Command line interface library for PHP
Latest stable
v1.9.4
Last release 2 years ago
no release in 18 months
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 53 of 53 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
53 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Apply fixes from StyleCI by @adhocore in #121
Full Changelog: v1.9.3...v1.9.4
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.9.3...v1.9.4
Your coding agent can read these notes before it upgrades. Set up the MCP server →
feat: Support for localized strings by @dimtrovich in https://github.com/adhocore/php-cli/pull/120
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.9.2...v1.9.3
Allow disabling colors by @kodie in #118
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.9.1...v1.9.2
Table with unicode character by @dimtrovich in #117
Full Changelog: v1.9.0...v1.9.1
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.9.0...v1.9.1
Make all written text built-in styles so that their styles can be customized by @kodie in #111
Full Changelog: v1.8.1...v1.9.0
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.8.1...v1.9.0
Apply fixes from StyleCI by @adhocore in https://github.com/adhocore/php-cli/pull/108
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.8.0...v1.8.1
Colorize one cell of table by @dimtrovich in https://github.com/adhocore/php-cli/pull/107
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.7.2...v1.8.0
fix dynamic property deprecation notice in testsuite on php 8.3 by @lubiana in #103
Full Changelog: https://github.com/adhocore/php-cli/compare/v.1.7.0...v1.7.2
Full Changelog : v1.7.0...v1.7.1
Full Changelog: v1.7.0...v1.7.1
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.7.0...v1.7.1
feat: writes a key/value set to two columns in a row by @dimtrovich in https://github.com/adhocore/php-cli/pull/99
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.6.2...v1.7.0
Version v1.7.0 (Progressbar Labels, Justify content)
Compare
Update README.md by @alexjeen in https://github.com/adhocore/php-cli/pull/92
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.6.1...v1.6.2
Added defaultCommand and getDefaultCommand methods by @tal7aouy in https://github.com/adhocore/php-cli/pull/90
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.6.0...v1.6.1
feat: show defaults for options/arguments by @adhocore in https://github.com/adhocore/php-cli/pull/87
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.5.0...v1.6.0
Feat Proposal: add progressbar to output by @dimtrovich in https://github.com/adhocore/php-cli/pull/78
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.4.0...v1.5.0
feat(app): support custom exception handler by @adhocore in https://github.com/adhocore/php-cli/pull/80
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.3.1...v1.4.0
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.3.0...v1.3.1
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.3.0...v1.3.1
fixed issue where certain commands would not execute due to env typings by @mrmusselman1 in https://github.com/adhocore/php-cli/pull/75
Full Changelog: https://github.com/adhocore/php-cli/compare/v1.2.0...v1.3.0
App: Set common group to commands set via callable (Jitendra Adhikari) _6c6e53c_
Contributors: @adhocore, @dimtrovich (#68)
Correct io() fallback mechanism (Daniel Jakob) _4072eaf_
Shell: Exitcode is null first (Jitendra Adhikari)
Breaking: for PHP8.0>= only
Php8.1 substr, d197dc6 (Jitendra A)
ability to unset some options or arguments
Travis: Add php 7.3 and 7.4 (Jitendra Adhikari) _a5c4a16_
App: Extract cmd not found to outputhelper (Jitendra Adhikari) _c317634_
Normalizer: Complex option containing value delimited by = (Jitendra Adhikari) _5d5394a_
Cmd.action: Can be array too (besides closure/null) (Jitendra Adhikari) _238c8b1_
Cmd.action: Bind to $this (Jitendra Adhikari) _c479995_
App: Add onExit prop, execute or action can return exit code (Jitendra Adhikari) _1e754a8_
Cmd.help: Usage label was printed even if no text (Jitendra Adhikari) _4639624_
Phpunit: Rm xml.syntaxCheck (Jitendra Adhikari) _6ae66b0_
Output.helper: Pad ## (Jitendra Adhikari) _73a4a4e_
Color: Comment line shows white trailing bar (daemonu) _b578d9a_
Extend exception from throwable (Jitendra Adhikari) _ab6b351_
Table: Add table renderer class (Jitendra Adhikari) _808e80e_
Reader: Add read hidden for win os (Jitendra Adhikari) _742c622_
Interactor: Add promptHidden (unix only) (Jitendra Adhikari) _1eb06c6_
573d3c1 refactor: remove sc folder and update readme with imgur link (Sushil Gupta) 121ab6c refactor(plugin): use gawk, cleanup (Jitendra Adhikari) ae
573d3c1 refactor: remove sc folder and update readme with imgur link (Sushil Gupta)<br>121ab6c refactor(plugin): use gawk, cleanup (Jitendra Adhikari)<br>aeaf5f4 refactor(plugin): phpcli => ahccli (Jitendra Adhikari)<br>e625fd0 chore: phpcli => ahccli (Jitendra Adhikari)<br>9e31caf docs: improve auto completion docs, rename phpcli to ahccli (Jitendra Adhikari)<br>
6e8755f docs: autocompletion (Jitendra Adhikari) 1152671 chore(zsh.plugin): auto complete provider for zsh with oh-my-zsh (Jitendra Adhikari)
f390b6b refactor: remove redundant codeCoverageIgnore (Sushil Gupta) cd8d109 refactor: minor refactor on messages + add isWindows() method using DIREC
a1c2c30 docs: add shell section and contributors (Jitendra Adhikari) 5146260 test: shell tests (Jitendra Adhikari) d1e8e73 refactor(shell): ignore cov
a1c2c30 docs: add shell section and contributors (Jitendra Adhikari)<br>5146260 test: shell tests (Jitendra Adhikari)<br>d1e8e73 refactor(shell): ignore cov, cleanup etc (Jitendra Adhikari)<br>8d5ebe9 feat(shell): a shell wrapper (Jitendra Adhikari)<br>37c0e4c Async true gives the process ID (Sushil Gupta)<br>1052ca0 More style fixes (Sushil Gupta)<br>989213f Style fixes (Sushil Gupta)<br>29e8d13 If timeout is set, and is set to wait (not async by default), then either wait until it runs or kill it after timeout occurs - if async (not wait) - then don't care about the process at all (Sushil Gupta)<br>7cf9536 If not async, then check for timeout if it is still running and attempt to stop it (Sushil Gupta)<br>88bc092 Stop - not kill (Sushil Gupta)<br>40ba003 Minor formatting fixed (Sushil Gupta)<br>f81237e Added set options method (Sushil Gupta)<br>2d44553 On destruct, if running, waiting until timeout and then attempting to stop, instead of directly attempting to stop (Sushil Gupta)<br>acabcca Root namespace appended for microtime (Sushil Gupta)<br>e86580a Removed redundant unblocking of getOutput (Sushil Gupta)<br>76fce1b Minor DocBlock update (Sushil Gupta)<br>926c4a6 WIP - Implemented timeout checking and wait system - not working yet (Sushil Gupta)<br>641d229 Minor refactor - removing updateProcessStatus when asking for getState - not related (Sushil Gupta)<br>205daed Refactored to add another state variable to store actual state of the shell execution vs the process status (Sushil Gupta)<br>62acd2d File default info added (Sushil Gupta)<br>acdbd64 Refactor - assigning default null + only assigning exit value if not already set and process has stopped (Sushil Gupta)<br>d742ecb Updating status before sending back exitcodes (Sushil Gupta)<br>96e3a9e Made private methods protected (Sushil Gupta)<br>3939825 Setting exit code on proc_close from the proc_get_status itself (Sushil Gupta)<br>56ba25d Implemented suggestions from code-review (Sushil Gupta)<br>dbb3c21 Refactored small things (Sushil Gupta)<br>13380da Removed timeout - not used anywhere for now (Sushil Gupta)<br>2d0f815 One more style fix (Sushil Gupta)<br>e93b398 More style fixes :/ (Sushil Gupta)<br>1be59a6 More style fixes (Sushil Gupta)<br>e43a34f More style fixes (Sushil Gupta)<br>0874497 Style fixes - unindenting inside <?php tag (Sushil Gupta)<br>5923304 Removed vdd (Sushil Gupta)<br>304f148 Removed wait method - wasn't working - to be added (Sushil Gupta)<br>735294c Removed env + cwd from the options, passing null, for the sprit of minimalism ;) (Sushil Gupta)<br>bfe1965 Added basic test case for getOutput (Sushil Gupta)<br>4972de3 Moved to helper (Sushil Gupta)<br>425af5e Added pipes for different platform, checking directory separator + added public method to return PID (Sushil Gupta)<br>19ce603 Minor refactoring (Sushil Gupta)<br>22a759a Moved public functions to the bottom (Sushil Gupta)<br>87ed2e4 Made some methods private + added exitCode method (Sushil Gupta)<br>c4c4f4e Added wait and other methods (Sushil Gupta)<br>bd54feb Using constants for descriptors key (Sushil Gupta)<br>4d8578e Minor refactoring (Sushil Gupta)<br>1e42021 Shell wrapper - basic proc_open implemented (Sushil Gupta)<br>
25c3f1a docs: improve readability and organize (Jitendra Adhikari)
25c3f1a docs: improve readability and organize (Jitendra Adhikari)<br>
a75c76e feat(cmd.option): support multiline desc and indent them properly on help (Jitendra Adhikari) 7b04d18 refactor: readme > README (Jitendra Adhi
a75c76e feat(cmd.option): support multiline desc and indent them properly on help (Jitendra Adhikari)<br>7b04d18 refactor: readme > README (Jitendra Adhikari)<br>6e79204 docs: exceptions preview (Jitendra Adhikari)<br>c5ffb12 test: 100% cov ftw (Jitendra Adhikari)<br>92f41ba feat(output.helper): add print trace (Jitendra Adhikari)<br>7b5080e refactor(app): output helper instantiation and print trace (Jitendra Adhikari)<br>
fix(argument): default values for variadic args fix(option): default values for variadic options
fix(argument): default values for variadic args<br>fix(option): default values for variadic options
feat(writer): add console table() renderer feat(helper): str toWords() fix(io): trailing / in choice options refactor(helper): improve help output fix
feat(writer): add console table() renderer feat(helper): str toWords() fix(io): trailing / in choice options refactor(helper): improve help output fix(helper): max length and padding fix(writer): title style, missing imports
- command alias - improve help msg
usage() example rendered with colors()
Command::execute()usage() example rendered with colors()- internal refactor - better ide support
feat(app): show help if no args given feat(app): command not found handler feat(color): multi color support with html like tags
feat(app): show help if no args given feat(app): command not found handler feat(color): multi color support with html like tags
fix(app): eat only first alias. fix exception location msg
make parser/command props private
fix: choice/confirm case sensitivity not working
Access to Interactor components
Already stable :)
Initial Version - Fully working - APIs will mostly likely be stable!
Initial Version - Fully working - APIs will mostly likely be stable!
One column per quarter.