- Add comprehensive error handling system with custom error pages - Implement professional enterprise-style design with Tailwind CSS - Create modular HMVC architecture with clean separation of concerns - Add security features: CSRF protection, XSS filtering, Argon2ID hashing - Include CLI tools for development workflow - Add error reporting dashboard with system monitoring - Implement responsive design with consistent slate color scheme - Replace all emoji icons with professional SVG icons - Add comprehensive test suite with PHPUnit - Include database migrations and seeders - Add proper exception handling with fallback pages - Implement template engine with custom syntax support - Add helper functions and facades for clean code - Include proper logging and debugging capabilities
56 lines
1.7 KiB
PHP
56 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Core\Commands;
|
|
|
|
/**
|
|
* Woles Help Command
|
|
* CLI command to show help information
|
|
*/
|
|
class HelpCommand
|
|
{
|
|
private array $commands = [];
|
|
|
|
public function __construct()
|
|
{
|
|
$this->commands = [
|
|
'make:module' => 'Create a new module',
|
|
'make:controller' => 'Create a new controller',
|
|
'make:model' => 'Create a new model',
|
|
'serve' => 'Start development server',
|
|
'migrate' => 'Run database migrations',
|
|
'migrate:rollback' => 'Rollback last migration batch',
|
|
'migrate:status' => 'Show migration status',
|
|
'seed' => 'Run database seeders',
|
|
'key:generate' => 'Generate application key',
|
|
'key:generate-show' => 'Generate and show application key',
|
|
'help' => 'Show available commands'
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Execute the command
|
|
*/
|
|
public function execute(): void
|
|
{
|
|
echo "Woles Framework Artisan CLI\n\n";
|
|
echo "Available commands:\n";
|
|
|
|
foreach ($this->commands as $command => $description) {
|
|
echo " " . str_pad($command, 20) . " {$description}\n";
|
|
}
|
|
|
|
echo "\nExamples:\n";
|
|
echo " php woles make:module Blog\n";
|
|
echo " php woles make:controller PostController Blog\n";
|
|
echo " php woles make:model Post Blog\n";
|
|
echo " php woles serve\n";
|
|
echo " php woles migrate\n";
|
|
echo " php woles migrate:rollback\n";
|
|
echo " php woles migrate:status\n";
|
|
echo " php woles seed\n";
|
|
echo " php woles seed UserSeeder\n";
|
|
echo " php woles key:generate\n";
|
|
echo " php woles key:generate-show\n";
|
|
}
|
|
}
|