comphp/console

Console executive, command, and terminal tooling support for PHP applications.

Maintainers

Package info

github.com/commonphp/console

pkg:composer/comphp/console

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.3 2026-05-17 21:22 UTC

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.