Skip to content

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.

License

Notifications You must be signed in to change notification settings

MaplePHP/cli-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MaplePHP CLI App

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

About

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.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages