Skip to content

Project Structure ​

Default Structure ​

txt
my-app/
├── app/
├── config/
├── routes/
├── storage/
├── app.php
├── nexphant.dev.php
└── composer.json

app.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 code
  • config/ - Configuration
  • routes/ - Route definitions
  • storage/ - Cache, logs, database

Next Steps ​

Released under the MIT License.