deepaktiwari / php-cmds
Simple PHP command for generating files following the MVC architecture, similar to Laravel's Artisan command. Easily create models, controllers, and views as per your needs
Requires
- php: >=7.0.0
README
This is a simple PHP command utility for generating files based on the MVC architecture, akin to Laravel's Artisan command. It allows you to effortlessly create models, controllers, and views tailored to your requirements.
1. PHP Installation
Ensure that PHP (version 7.x or higher) is installed on your system.
2. Composer Installation
Composer is required as the PHP package manager. If it's not already installed, follow these instructions.
3. Installing the Package
Run the following command in your project directory:
composer require deepaktiwari/php-cmds
4. Post-Installation Command
After installation, execute the following command in your directory:
php vendor/deepaktiwari/php-cmds/src/framework Your-Command-Name
5. Executing PHP Commands
You're now ready to use your PHP commands. Here's an example:
php Your-Command-Name -d=app -c=ControllerName -m=ModelName -v=ControllerName/ActionName