gatovel / cli
Requires
- php: ^8.3
- gatovel/database: ^1.0
README
The Gatovel CLI is the command-line interface for the Gatovel PHP Framework.
It provides commands that help developers interact with and manage Gatovel applications directly from the terminal.
What is it for?
The CLI is designed to automate common development tasks within Gatovel applications, such as:
- Displaying available commands
- Displaying the framework version
- Generating controllers
- Providing a foundation for future framework commands
Instead of manually creating files and directories, developers can use simple terminal commands to perform common tasks.
Available Commands
Help
Displays the available commands:
php gatovel
or:
php gatovel help
Version
Displays the current Gatovel CLI version:
php gatovel version
Make Controller
Generates a new controller with the basic controller methods:
php gatovel make:controller UserController
This generates a controller containing methods such as:
index() create() store() show() edit() update() destroy()
Installation
The Gatovel CLI is distributed as a Composer package:
composer require gatovel/cli
Architecture
The CLI is maintained as an independent package from the Gatovel Framework core.
Gatovel Framework
│
└── gatovel/cli
│
├── Application
├── Command
├── CommandRegistry
├── Commands
└── Generators
This separation allows the CLI to have its own development cycle, versioning, and releases without being directly coupled to the framework's core.
Requirements
- PHP 8.3 or higher
- Composer
Status
This project is currently under development as part of the Gatovel PHP Framework.
More commands and generators will be added as the framework evolves.
License
MIT