eiko/cli

File structure generator for PHP projects. Simplifies the creation of standard directories and files for a quick start of development.

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

pkg:composer/eiko/cli

v1.7.2 2025-08-10 08:26 UTC

This package is auto-updated.

Last update: 2026-01-10 09:21:21 UTC


README

File structure generator for PHP projects. Simplifies the creation of standard directories and files for a quick start of development.

Installation;

composer global require eiko/cli

Initialize Project;

eiko init

Creates a complete LeafPHP project structure:

server/
├── logs/
├── public/
│   └── index.php
├── src/
│   ├── core/
│   │   ├── Config/
│   │   └── Routes/
│   └── modules/
│       ├── Controllers/
│       ├── Middleware/
│       ├── Models/
│       └── Utils/
├── .env
├── .env.example
├── .gitignore
├── composer.json
└── README.md

After generation, run command:

cd server

Create Components;

eiko create <type> <name>

Types:

  1. controller
  2. middleware
  3. model
  4. route

Examples:

eiko create controller Post
eiko create middleware Validation
eiko create model Product
eiko create route User