Project Structure
Default Structure
txt
my-app/
├── app/
├── config/
├── routes/
├── storage/
├── app.php
├── nexphant.dev.php
└── composer.jsonapp.php
php
<?php
require __DIR__ . '/vendor/autoload.php';
use Nexphant\App;
$app = App::create();
require __DIR__ . '/routes/web.php';
$app->listen(
host: env('APP_HOST', '0.0.0.0'),
port: (int) env('APP_PORT', 8080)
);nexphant.dev.php
php
<?php
require __DIR__ . '/vendor/autoload.php';
use Nexphant\Reload;
Reload::start(
command: 'php app.php',
watch: ['app', 'routes', 'config'],
ignore: ['storage', 'vendor']
);Directories
app/- Application codeconfig/- Configurationroutes/- Route definitionsstorage/- Cache, logs, database
