adhocore/cli
Command line interface library for PHP
v1.9.4
1.5M downloads/mo
#2641 most downloaded on Packagist
adhocore/php-cli
What this package is like to depend on
Last release 1 years ago
11 May 2025
Ships fairly regularly
a new release about every 2 months
Most releases are documented
notes for 34 of 53 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
53 releases · first in 2018
0 releases in the last 12 months
see the full history below
Release timeline
52 releases · Jul 2018 to May 2025Releases
latest 53-
v1.9.411 May 2025Release notes
Open source →What's Changed
- Apply fixes from StyleCI by @adhocore in #121
- patch: fix docs typing error by @dimtrovich in #122
- Improve the visualisation of commands in the default group by @acataluddi in #126
- Apply fixes from StyleCI by @adhocore in #130
New Contributors
- @acataluddi made their first contribution in #126
Full Changelog: v1.9.3...v1.9.4
-
v1.9.304 Dec 2024Release notes
Open source →What's Changed
- feat: Support for localized strings by @dimtrovich in #120
Full Changelog: v1.9.2...v1.9.3
-
v1.9.201 Dec 2024Release notes
Open source → -
v1.9.129 Nov 2024Release notes
Open source →What's Changed
- Table with unicode character by @dimtrovich in #117
- Apply fixes from StyleCI by @adhocore in #119
Full Changelog: v1.9.0...v1.9.1
-
v1.9.026 Nov 2024Release notes
Open source →What's Changed
- Make all written text built-in styles so that their styles can be customized by @kodie in #111
- Add support for custom help screens by @kodie in #113
- Add support for outputting 256 colors and also add documentation about default command functionality by @kodie in #110
- Add logo support for commands (rebased) by @kodie in #116
Full Changelog: v1.8.1...v1.9.0
-
v1.8.120 Nov 2024Release notes
Open source →What's Changed
- Apply fixes from StyleCI by @adhocore in #108
- Allow for custom default command execution without arguments by @kodie in #109
New Contributors
Full Changelog: v1.8.0...v1.8.1
-
v1.8.015 Nov 2024Release notes
Open source → -
v1.7.205 Sep 2024Release notes
Open source →What's Changed
- fix dynamic property deprecation notice in testsuite on php 8.3 by @lubiana in #103
- make parameters with null default value explicitly nullable by @lubiana in #104
New Contributors
Full Changelog: v.1.7.0...v1.7.2
-
v1.7.128 Mar 2024 -
v1.7.0no dateRelease notes
Open source →Version v1.7.0 (Progressbar Labels, Justify content)
Compare
Choose a tag to compare
-
v1.6.222 Jan 2024Nothing published for this version
-
v1.6.126 Jun 2023Nothing published for this version
-
v1.6.020 Apr 2023Nothing published for this version
-
v1.5.030 Mar 2023Nothing published for this version
-
v1.4.025 Mar 2023Nothing published for this version
-
v1.3.111 Feb 2023Nothing published for this version
-
v1.3.011 Feb 2023Nothing published for this version
-
v1.2.008 Oct 2022Release notes
Open source →Features
- App: Set common group to commands set via callable (Jitendra Adhikari) 6c6e53c
- Helper: Support grouped sorting for show help (Jitendra Adhikari) 314a887
- Input: Add Groupable interface, make Command groupable (Jitendra Adhikari) 29b09ce
Bug Fixes
- Adapt for strict type php8 (Jitendra Adhikari) 8198969
Internal Refactors
- *****: Use imports instead of FQN (Jitendra Adhikari) bd0a70c
Miscellaneous
- Travis: Retire it :( (Jitendra Adhikari) 70e510b
Documentations
- Add Grouping commands section (Jitendra Adhikari) 3e05837
Builds
- Workflow: Add github action build (Jitendra Adhikari) 9b4da7d
-
v1.0.105 Jul 2022 -
v1.0.030 Jun 2022Release notes
Open source →Bug Fixes
- Shell: Exitcode is null first (Jitendra Adhikari)
Internal Refactors
- Add typehints, remove redundant docblocks (Jitendra Adhikari)
- Use php8 syntax (Jitendra Adhikari)
Miscellaneous
- Typehint (Jitendra)
- Run on >= php8 (Jitendra Adhikari)
- Use php8 deps (Jitendra Adhikari)
-
0.9.118 Feb 2022 -
0.9.006 Jan 2021Nothing published for this version
-
0.8.409 Oct 2020 -
0.8.305 Jan 2020Release notes
Open source →Internal Refactors
- App: Extract cmd not found to outputhelper (Jitendra Adhikari) c317634
-
0.8.203 Jan 2020Release notes
Open source →Bug Fixes
- Normalizer: Complex option containing value delimited by = (Jitendra Adhikari) 5d5394a
-
0.8.103 Jan 2020Release notes
Open source →Bug Fixes
- Cmd.action: Can be array too (besides closure/null) (Jitendra Adhikari) 238c8b1
-
0.8.003 Jan 2020Release notes
Open source →Features
- Cmd.action: Bind to $this (Jitendra Adhikari) c479995
Documentations
- Add credits, update license year (Jitendra Adhikari) 2bf08c5
-
0.7.303 Jan 2020Release notes
Open source →Internal Refactors
- App: Add onExit prop, execute or action can return exit code (Jitendra Adhikari) 1e754a8
Documentations
-
0.7.202 Jan 2020Release notes
Open source →Bug Fixes
- Cmd.help: Usage label was printed even if no text (Jitendra Adhikari) 4639624
-
0.7.102 Jan 2020Release notes
Open source →Bug Fixes
- Phpunit: Rm xml.syntaxCheck (Jitendra Adhikari) 6ae66b0
Internal Refactors
- Interactor: Reduce complexity in prompt (Jitendra Adhikari) dd008af
Miscellaneous
-
0.7.030 Dec 2019Release notes
Open source →Bug Fixes
- Output.helper: Pad ## (Jitendra Adhikari) 73a4a4e
- Normalizer: Invert bool iff type is bool not value (Jitendra Adhikari) 6ff4acd
Internal Refactors
- Option: Improve bool() check (Jitendra Adhikari) e7e95e3
-
0.6.230 Dec 2019Release notes
Open source →Bug Fixes
- Color: Comment line shows white trailing bar (daemonu) b578d9a
-
0.6.129 Dec 2019Release notes
Open source →Miscellaneous
- Extend exception from throwable (Jitendra Adhikari) ab6b351
-
0.6.026 Dec 2019Release notes
Open source →Features
- Table: Add table renderer class (Jitendra Adhikari) 808e80e
- Reader: Add readAll() (Jitendra Adhikari) 9264082
- Output: Add show usage (Jitendra Adhikari) 1356515
- Reader: Add read piped (Jitendra Adhikari) 790f2a1
Internal Refactors
- Reader: Visibility (Jitendra Adhikari) bcea11b
- Writer: Use Table::render instead (Jitendra Adhikari) f0f33ee
- Command: Use helper showUsage() instead (Jitendra Adhikari) ef5ea2b
Miscellaneous
- Composer: Add test scripts (Jitendra Adhikari) 4d292ca
- Color: Add dark and light gray colors (Jitendra Adhikari) 2d4051d
Documentations
-
0.5.016 Sep 2019Release notes
Open source →Features
- Reader: Add read hidden for win os (Jitendra Adhikari) 742c622
Internal Refactors
- Interactor: Prompt hidden now supported in win os (Jitendra Adhikari) 491d162
Documentations
- Add a note about hidden prompt on win os (Jitendra Adhikari) 43fe762
-
0.4.007 Sep 2019Release notes
Open source →Features
- Interactor: Add promptHidden (unix only) (Jitendra Adhikari) 1eb06c6
- Reader: Add readHidden (Jitendra Adhikari) 3628331
Documentations
- About hidden prompt (Jitendra Adhikari) af086f9
-
0.3.309 Mar 2019Release notes
Open source →- 573d3c1 refactor: remove sc folder and update readme with imgur link (Sushil Gupta)
- 121ab6c refactor(plugin): use gawk, cleanup (Jitendra Adhikari)
- aeaf5f4 refactor(plugin): phpcli => ahccli (Jitendra Adhikari)
- e625fd0 chore: phpcli => ahccli (Jitendra Adhikari)
- 9e31caf docs: improve auto completion docs, rename phpcli to ahccli (Jitendra Adhikari)
-
0.3.206 Sep 2018 -
0.3.106 Sep 2018 -
0.3.004 Sep 2018Release notes
Open source →- a1c2c30 docs: add shell section and contributors (Jitendra Adhikari)
- 5146260 test: shell tests (Jitendra Adhikari)
- d1e8e73 refactor(shell): ignore cov, cleanup etc (Jitendra Adhikari)
- 8d5ebe9 feat(shell): a shell wrapper (Jitendra Adhikari)
- 37c0e4c Async true gives the process ID (Sushil Gupta)
- 1052ca0 More style fixes (Sushil Gupta)
- 989213f Style fixes (Sushil Gupta)
- 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)
- 7cf9536 If not async, then check for timeout if it is still running and attempt to stop it (Sushil Gupta)
- 88bc092 Stop - not kill (Sushil Gupta)
- 40ba003 Minor formatting fixed (Sushil Gupta)
- f81237e Added set options method (Sushil Gupta)
- 2d44553 On destruct, if running, waiting until timeout and then attempting to stop, instead of directly attempting to stop (Sushil Gupta)
- acabcca Root namespace appended for microtime (Sushil Gupta)
- e86580a Removed redundant unblocking of getOutput (Sushil Gupta)
- 76fce1b Minor DocBlock update (Sushil Gupta)
- 926c4a6 WIP - Implemented timeout checking and wait system - not working yet (Sushil Gupta)
- 641d229 Minor refactor - removing updateProcessStatus when asking for getState - not related (Sushil Gupta)
- 205daed Refactored to add another state variable to store actual state of the shell execution vs the process status (Sushil Gupta)
- 62acd2d File default info added (Sushil Gupta)
- acdbd64 Refactor - assigning default null + only assigning exit value if not already set and process has stopped (Sushil Gupta)
- d742ecb Updating status before sending back exitcodes (Sushil Gupta)
- 96e3a9e Made private methods protected (Sushil Gupta)
- 3939825 Setting exit code on proc_close from the proc_get_status itself (Sushil Gupta)
- 56ba25d Implemented suggestions from code-review (Sushil Gupta)
- dbb3c21 Refactored small things (Sushil Gupta)
- 13380da Removed timeout - not used anywhere for now (Sushil Gupta)
- 2d0f815 One more style fix (Sushil Gupta)
- e93b398 More style fixes :/ (Sushil Gupta)
- 1be59a6 More style fixes (Sushil Gupta)
- e43a34f More style fixes (Sushil Gupta)
- 0874497 Style fixes - unindenting inside <?php tag (Sushil Gupta)
- 5923304 Removed vdd (Sushil Gupta)
- 304f148 Removed wait method - wasn't working - to be added (Sushil Gupta)
- 735294c Removed env + cwd from the options, passing null, for the sprit of minimalism ;) (Sushil Gupta)
- bfe1965 Added basic test case for getOutput (Sushil Gupta)
- 4972de3 Moved to helper (Sushil Gupta)
- 425af5e Added pipes for different platform, checking directory separator + added public method to return PID (Sushil Gupta)
- 19ce603 Minor refactoring (Sushil Gupta)
- 22a759a Moved public functions to the bottom (Sushil Gupta)
- 87ed2e4 Made some methods private + added exitCode method (Sushil Gupta)
- c4c4f4e Added wait and other methods (Sushil Gupta)
- bd54feb Using constants for descriptors key (Sushil Gupta)
- 4d8578e Minor refactoring (Sushil Gupta)
- 1e42021 Shell wrapper - basic proc_open implemented (Sushil Gupta)
-
0.2.128 Aug 2018 -
0.2.021 Aug 2018Release notes
Open source →- a75c76e feat(cmd.option): support multiline desc and indent them properly on help (Jitendra Adhikari)
- 7b04d18 refactor: readme > README (Jitendra Adhikari)
- 6e79204 docs: exceptions preview (Jitendra Adhikari)
- c5ffb12 test: 100% cov ftw (Jitendra Adhikari)
- 92f41ba feat(output.helper): add print trace (Jitendra Adhikari)
- 7b5080e refactor(app): output helper instantiation and print trace (Jitendra Adhikari)
-
0.1.128 Jul 2018Nothing published for this version
-
0.1.028 Jul 2018Nothing published for this version
-
0.0.925 Jul 2018Nothing published for this version
-
0.0.824 Jul 2018Nothing published for this version
-
0.0.718 Jul 2018Nothing published for this version
-
0.0.617 Jul 2018Nothing published for this version
-
0.0.513 Jul 2018Nothing published for this version
-
0.0.413 Jul 2018Nothing published for this version
-
0.0.309 Jul 2018Nothing published for this version
-
0.0.207 Jul 2018Nothing published for this version
-
0.0.101 Jul 2018Nothing published for this version