Download the PHP package cli/terminal without Composer
On this page you can find all versions of the php package cli/terminal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package terminal
Commander - MC-Style PHP Console Application
Component-based Midnight Commander-style terminal application framework.
Create fullscreen, keyboard-driven interfaces with double-buffered rendering.
Why Commander?
Build terminal UIs like you build web apps - with reusable components, clean architecture, and modern PHP.
No complex setup. No learning curve. Just beautiful terminal UIs.
Features
- Multiple Color Themes - Midnight Commander, Dark, and Light themes
- Double-Buffered Rendering - Flicker-free display with minimal ANSI sequences
- Component-Based Architecture - Reusable UI components (Tables, Forms, Lists, Panels)
- Module SDK - Extensible plugin system for adding new features
- Full Keyboard Navigation - Function keys, arrow keys, and shortcuts
- Built-in Modules - File Browser, Command Browser, Composer Manager, Git
Requirements
- PHP 8.3 or higher
- Symfony Console 7.3+
- Terminal with ANSI color support
Quick Start
1. Installation
2. Create Launch Script
Create a PHP file (e.g., console) that launches the Commander interface:
3. Make It Executable and Launch
That's it! You now have a fullscreen terminal UI with:
- Midnight Commander-style interface
- File browser with dual-panel layout
- Command browser for Symfony Console commands
- Composer package manager
- Git repository browser
- Smooth, flicker-free rendering
Available Themes
Commander comes with three built-in themes:
Midnight Commander (Default)
Classic blue theme with cyan highlights - just like the original Midnight Commander.
Dark Theme
Modern dark theme with black background and green/cyan accents.
Light Theme
Light theme with white background - perfect for well-lit environments.
Tip: Call ColorScheme::applyTheme() before building your Application.
Built-in Modules
Commander includes four ready-to-use modules:
1. File Browser Module
Navigate and browse the filesystem with a two-panel layout.
Features:
- Dual-panel layout (list + preview)
- File/directory navigation
- File preview with syntax highlighting
- Shows file sizes and modification times
Keyboard: F1 menu | ↑↓ navigate | Enter open | Tab switch panels | Ctrl+E view file
Full Documentation
2. Command Browser Module
Browse and execute all registered Symfony Console commands.
Features:
- Lists all available Symfony commands
- Dynamic form generation for arguments and options
- Shows command output in real-time
- Dangerous command confirmation
Keyboard: F2 menu | ↑↓ navigate | Tab switch panels | Ctrl+E execute
Full Documentation
3. Composer Manager Module
Manage Composer packages with tabbed interface.
Features:
- View installed packages
- Check for outdated packages
- Security audit
- Run Composer scripts
Tabs: Scripts | Installed | Outdated | Security
Keyboard: F3 menu | Ctrl+←/→ switch tabs | ↑↓ navigate
Full Documentation
4. Git Module
Browse and manage Git repositories.
Features:
- View repository status
- Stage/unstage files
- View file diffs
- Browse branches and tags
Tabs: Status | Branches | Tags
Keyboard: F4 menu | Ctrl+←/→ switch tabs | Ctrl+G global shortcut
Full Documentation
Module SDK
Create your own modules using the Module SDK. See the Module SDK Developer Guide for complete documentation.
Quick Example
Using Custom Modules
Available Components
Commander provides rich set of UI components:
Display Components
ListComponent- Scrollable list with selectionTableComponent- Multi-column table with sortingTextDisplay- Scrollable text viewer with word wrap
Input Components
FormComponent- Form container with validationTextField- Text input fieldCheckboxField- Checkbox/toggleArrayField- Comma-separated array input
Layout Components
Panel- Container with border and titleModal- Overlay dialog (info/error/warning/confirm)MenuBar- Top menu barStatusBar- Bottom status bar with shortcutsTabContainer- Tabbed interfaceGridLayout- Column-based layoutSplitLayout- Two-panel split layoutStackLayout- Vertical/horizontal stacking
Architecture Overview
Project Structure
Key Concepts
- Modules - Self-contained features (File Browser, Git, etc.)
- Screens - Full-screen views (like pages in a web app)
- Components - Reusable UI elements (tables, forms, panels)
- Double Buffering - Prevents flickering by rendering off-screen first
- Theme System - Customizable color schemes
Documentation
- Module SDK Developer Guide - Create custom modules
- Keyboard Architecture - Key handling internals
- Testing Guide - Testing screens and components
- Menu System - Menus and navigation
Use Cases
Commander is perfect for:
- DevOps Tools - Server management, deployment dashboards
- CLI Dashboards - System monitoring, log viewers
- Development Tools - Code generators, project scaffolders
- Admin Panels - Database managers, configuration editors
- Interactive Wizards - Multi-step installation processes
- File Managers - Custom file browsers with preview
- Package Managers - Dependency management UIs
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License. See LICENSE file for details.
Acknowledgments
Inspired by Midnight Commander - the legendary file manager.
All versions of terminal with dependencies
symfony/console Version ^7.3
symfony/finder Version ^7.3
symfony/process Version ^7.3
composer/composer Version ^2.0