maslosoft / cli-shared
Shared CLI application components
Requires
- php: >=8.2
- psr/log: ^3|^4
- symfony/finder: >=2.7
- symfony/yaml: >=2.7
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-16 15:25:02 UTC
README
Maslosoft Cli Shared
Shared CLI application components
Quick Install
composer require maslosoft/cli-shared
Documentation
Command Line Shared Components
This library contains commonly used miscellaneous classes mostly useful in PHP command line interface applications.
This includes, but are not limited to:
- Kind of operating system type helper - whether it is Windows® or Linux
- Caching configuration file reader
- Inline logger compatible with PSR Logger Interface
- PHP data exporter similar to
var_export
Requirements
PHP 8.5 or later is required. Symfony Console, Finder, and YAML support versions 7.4 and 8.x. Composer installs the compatible dependencies.
Development
composer install
composer test
Run Composer with PHP 8.5 or later. The test script builds the Codeception actor and runs the unit suite with PHP warnings and deprecations treated as failures.
When upgrading, custom configuration adapters and logger subclasses must match
the newly typed method declarations. PhpExporter::export() uses PHP 8.5's
#[NoDiscard]: use its returned string, or explicitly discard it with (void).