maplephp / cli-app
Starter project for building CLI applications with MaplePHP, including routing, controllers, dependency injection, and command tooling ready for extension and customization.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
pkg:composer/maplephp/cli-app
Requires
- php: >=8.2
- maplephp/log: ^v2.0
- maplephp/unitary: ^v2.1
This package is auto-updated.
Last update: 2026-02-16 19:10:15 UTC
README
A lightweight CLI application skeleton built on the MaplePHP ecosystem. It provides a modern command-line framework with routing, controllers, dependency injection, services, and PSR-compatible components so you can build any CLI application or automation tool.
This project is intended to be installed using Composer’s create-project and serves as the starting point for CLI applications.
Installation
Create a new project:
composer create-project maplephp/cli-app my-app
cd my-app
Run the CLI:
./cli
Usage
Typical commands:
./cli list
./cli run --arg=1
./cli help
Project Structure
Example structure:
my-app/
├── app/
│ ├── Controllers/
│ └── Services/
├── routers/
├── vendor/
Features
- Command routing and dispatch
- Controller and service structure
- Dependency Injection container
- PSR-compatible components
- Command helpers and tooling
- Extendable architecture for plugins or modules
Relationship to Unitary
maplephp/unitary is the testing framework and provides:
vendor/bin/unitary