comphp / console
Console executive, command, and terminal tooling support for PHP applications.
Requires
- php: ^8.5
- comphp/runtime: ^0.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.95
- phpunit/phpunit: ^13.1
This package is auto-updated.
Last update: 2026-05-17 21:23:23 UTC
README
CommonPHP Console provides command-line execution support for CommonPHP applications. It defines the console executive, command structure, input/output handling, and terminal-oriented runtime integration.
The package is intended for CLI tools, maintenance commands, diagnostics, workers, and developer utilities that run through the CommonPHP runtime model.
Requirements
- PHP
^8.5 comphp/runtime:^0.3
Installation
Once this package is available through your Composer repositories, install it with:
composer require comphp/console
Usage
<?php // TODO: Write usage
Package Notes
This package should provide the console runtime mode, command discovery/registration, argument handling, output helpers, and command execution. Application bootstrapping remains in comphp/runtime.
Error Handling
Command failures should return non-zero exit statuses and should use package-specific exceptions for invalid command definitions, invalid arguments, and execution failures.
Documentation
License
MIT. See LICENSE.md.