For a library for building PHP CLI applications, the strongest matches are symfony/console (This is the industry-standard framework for building sophisticated PHP), mnapoli/silly (Silly is a micro-framework built on top of Symfony) and symfony/framework-bundle (This repository provides the core integration for the Symfony). symfony/dependency-injection and php-fig/container round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
We curate open-source GitHub repositories matching “best php cli frameworks”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
Console is a PHP CLI framework used for building interactive terminal applications. It functions as a command line interface development toolkit and orchestrator that manages the lifecycle of terminal commands, processes user input, and produces formatted text output. The project includes a terminal capability detector to identify system color modes and window dimensions for creating responsive layouts. It provides a console output formatter for rendering styled text, bordered blocks, and progress bars, alongside a system for creating interactive terminal interfaces. The framework covers com
This is the industry-standard framework for building sophisticated PHP CLI applications, providing comprehensive tools for command routing, argument parsing, interactive prompts, and advanced output styling.
currentMenu: home Silly CLI micro-framework based on Symfony Console.
Silly is a micro-framework built on top of Symfony Console that provides a simplified, expressive syntax for defining commands, argument parsing, and routing, making it a solid choice for building CLI tools in PHP.
This project serves as the core integration layer for building full-stack web applications in PHP. It provides a unified foundation by connecting essential infrastructure components, including a dependency injection container, an event dispatcher, and a request routing engine. The framework operates through a kernel-based request lifecycle that transforms incoming HTTP requests into responses via prioritized middleware stages. The system distinguishes itself through a highly modular architecture that relies on configuration-driven service wiring and metadata-driven attribute mapping. During t
This repository provides the core integration for the Symfony Console component, which is a robust and industry-standard framework for building complex CLI applications with advanced routing, styling, and argument parsing capabilities.
This project is a PHP dependency injection container and framework designed to centralize object construction and manage class dependencies. It serves as a service container and configuration registry that automates object lifecycles and manages references between services to decouple application components from their specific dependencies. The system handles the instantiation and wiring of objects through both constructor and setter injection. It provides a centralized registry for storing reusable parameters and service definitions, which prevents the hardcoding of settings across the appli
This is a dependency injection container library that provides a single architectural component, rather than a comprehensive framework for building CLI applications with command routing and interactive console features.
This project is a shared technical specification and standard interface for dependency injection containers in PHP. It defines a common set of interfaces for retrieving services and dependencies, ensuring that different container implementations remain interoperable across the PHP ecosystem. By establishing a standardized API for dependency retrieval, the project allows developers to create libraries that function with any compliant container. This prevents vendor lock-in and enables different container implementations to be swapped without requiring changes to the application code. The spec
This repository provides a standardized interface for dependency injection containers rather than a framework for building command-line applications, making it a supporting component rather than the tool itself.
Rich is a comprehensive library for building sophisticated command-line interfaces and terminal applications. It provides a robust console formatting engine and a layout framework that enables developers to render rich text, syntax-highlighted code, and complex data structures directly in the terminal. By utilizing a recursive constraint-based layout engine, the library allows for the creation of hierarchical grids, panels, and trees that maintain their structure even as terminal dimensions change. What distinguishes the library is its ability to manage persistent, real-time terminal interfac
This is a Python library for terminal styling and layout, not a PHP framework, and it lacks the command routing and dependency injection features required for building CLI applications in PHP.