Releases: phpgt/Cli
April 2026 release
What's Changed
- Add JetBrains sponsorship to README with H1 heading by @g105b in #244
- Colour output by @g105b in #245
- feature: mark repeating lines with repeating character by @g105b in #243
- feature: progress bar by @g105b in #246
- Application exit code by @g105b in #247
- long/ short option by @g105b in #248
- feature: chained letter arguments by @g105b in #249
Full Changelog: v1.3.5...v1.3.6
May 2024 release
What's Changed
- feature: exit code
- Move to latest PhpGt/Daemon, with environment variable support
- Upgrade CI and test coverage by @g105b in #240
- Upgrade Cli CI by @g105b in #241
Full Changelog: v1.3.4...v1.3.5
September 2023 release
PHP 8.1 improvements
Minor general improvements
- Types are tidied up throughout.
- An argument list is always nullable by default.
- Composer is used to handle semantic version numbering.
- An empty string is returned when no user input is detected (rather than
null). - Dependencies bumped.
CI and type safety improvements
This patch release includes two improvements: 1) CI is handled by Github Actions now - you can check out the build history at https://github.com/PhpGt/Cli/actions 2) PHPStan level 6 has been applied to the code, meaning certain type hints have been improved for greater readability and future maintainability.
Have fun!
Upgrade to PHP 7.4
Since the introduction of PHP 7.4, the way sub-processes are handled in PHP is a lot cleaner and more manageable. This release upgrades to the new execution model, which means that if any Gt/Cli/Command is executed from within another PHP process, the server will no longer be left hanging after the parent process is terminated.
Stable dependencies
PhpGt/Cli depends on PhpGt/Daemon, which has received its first stable release, meaning that this repository no longer has to specify dev-master in its composer.json.
June 2019 minor improvements
No new functionality is being introduced in this release, but plenty of backwards-compatible improvements, such as:
- Fixed bug where arguments with no value must be passed only at the end of the arguments list
- Full documentation is output in the
--helpcommand - All processes take advantage of the PHP.Gt/Daemon repository
- Use in/out/err streams by default (no need to specify)
In-memory streams
This is a minor release consisting of an introduction of default constructor arguments to the Stream object. Now a Stream can be constructed without specifying any particular stream path, in which case the object will use php://memory.