spinxphp/spinx

The official application skeleton for the Spinx PHP Framework.

Maintainers

Package info

github.com/iamdevroyal/spinxphp-bare

Homepage

Documentation

Type:project

pkg:composer/spinxphp/spinx

Transparency log

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-08-27 21:25 UTC

This package is auto-updated.

Last update: 2026-08-27 22:13:42 UTC


README

The official starter application template for the Spinx PHP Framework.

⚡ Quickstart

Creating a New Project

The recommended way to start a new Spinx project is with the official global installer:

composer global require spinxphp/installer
spinx new my-app

Or directly via Composer:

composer create-project spinxphp/spinx my-app

Starting the Development Server

cd my-app
php spinx serve

Your application is now running at http://localhost:8080 (RoadRunner worker) and the Vite HMR dev server is live at http://localhost:5173.

🧩 Directory Structure

my-app/
├── app/
│   └── Modules/          <-- Domain-Driven Design (DDD) business modules
├── config/               <-- Application configuration (.env backed)
├── frontend/             <-- Vue 3 / React 19 island components (Vite)
├── public/               <-- Web server entry points (index.php, swoole-worker.php)
├── resources/            <-- Views and server-rendered .spinx.html templates
├── storage/              <-- Framework caches, sessions, logs, SQLite DB
├── vendor/
│   └── spinxphp/
│       └── framework/    <-- Spinx Core Engine
├── .env.example
├── .rr.yaml
├── composer.json
└── spinx                 <-- Local CLI development tool

🛠️ Local CLI Commands

php spinx serve                        # Start persistent runtime + Vite HMR
php spinx make:module Orders --all     # Scaffold complete DDD module
php spinx migrate                      # Run database migrations
php spinx queue:work                   # Start background queue worker
php spinx ai:build "Build a CMS"       # Autonomous AI feature build
php spinx driver:swap swoole           # Switch runtime to Swoole coroutines

📖 Documentation

Full guides and API reference: spinxphp.pages.dev/docs

📄 License

MIT — see LICENSE.