1. Go to this page and download the library: Download haykay/mvc-boilerplate library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
namespace App\Core\Console\Commands;
class MyCommand implements CommandInterface
{
public function execute(array $arguments)
{
// Your command logic here
}
}
bash
php fortress run
bash
# Start server (default: localhost:8000)
php fortress run
# Custom host and port
php fortress run 127.0.0.1:3000
php fortress run --host=0.0.0.0 --port=8080
# Show help
php fortress run --help
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.