Skip to content

nexphant/nexphant ​

Application skeleton for Nexphant projects. This is the starting point for all Nexphant applications.

Install ​

bash
composer create-project nexphant/nexphant my-app

Template Selection ​

During setup, choose a template:

TemplateDescription
blankMinimal — single app.php
apiAPI structure with controllers
mvcMVC with views and routes

Project Structure ​

my-app/
├── app/
│   ├── Controllers/
│   ├── Middleware/
│   └── Providers/
├── config/
│   ├── app.php
│   └── database.php
├── routes/
│   └── api.php
├── storage/
│   └── logs/
├── .env
├── app.php
└── nexphant.dev.php

setup.php Behavior ​

On first run, setup.php initializes:

  • .env from .env.example
  • Storage directories
  • Config cache

Composer Scripts ​

json
{
  "scripts": {
    "setup": "php setup.php",
    "dev": "php nexphant.dev.php",
    "serve": "php app.php",
    "dump": "composer dump-autoload -o"
  }
}

Dev Reload ​

bash
composer run dev

Watches app/, config/, routes/ and restarts on change.

Released under the MIT License.