Console
Source-reviewed against the pinned revision below. This is a component integration guide, not a claim of a complete tested application matrix.
Package and installation
Section titled “Package and installation”triangle/console · AGPL-3.0-or-later
composer require triangle/consolecomposer check-platform-reqscomposer show triangle/consoleThe command resolves the available release, not necessarily the source revision reviewed here. Keep and validate your application lock. Direct requirements do not describe all transitive PHP/extension constraints.
| Requirement | Constraint |
|---|---|
localzet/console | >=1.0 |
triangle/engine | ^8.1 |
symfony/process | ^7.1 |
The entry point is Triangle\Console, built on Localzet Console/Symfony Console. It registers framework commands and configured command classes. There is no Triangle\Console\Command base class in this component. Extend the actual Localzet or Symfony command base used by your installed version.
Startup and configuration
Section titled “Startup and configuration”The Web master entry point loads Composer, paths, environment and Engine autoload before calling Console::runAll(). Use php master list to inspect commands actually installed; do not assume command names from another Console version. config/console.php controls service/build settings. Custom classes need a static defaultName and are constructed with console config by loadFromConfig().
Public surface
Section titled “Public surface”Console::__construct(array $config = [], bool $installInternalCommands = true); Console::runAll(array $config = [], bool $internal = true, ?InputInterface $input = null, ?OutputInterface $output = null): void; installInternalCommands(): void. The run method executes the application, so do not call it while handling an HTTP request.
Failures and release checks
Section titled “Failures and release checks”Missing/abstract command classes, missing defaultName or incompatible constructors cause startup errors. PHAR/native build settings are configuration, not proof of reproducible packaging. Exclude secrets and runtime files, retain required license notices and verify the built artifact. The installed Localzet Console 1.1.8 path fails on PHP 8.5 implicit-nullable deprecations under Engine’s error handler; see compatibility notes.
Source and verification
Section titled “Source and verification”Console · 9cf5a30f9493. Framework startup limits.