Skip to content

switon-php/skeleton

Repository files navigation

Switon App Starter

Official starter for a new Switon application.

Installation

composer create-project switon/skeleton my-app
cd my-app

Run

php public/index.php

create-project creates .env from .env.example and generates MASTER_KEY. .env defaults SERVER_TYPE=php for the built-in PHP server.

Then open:

  • http://127.0.0.1:9501/ — welcome JSON
  • http://127.0.0.1:9501/time/current — sample route

CLI

bash bin/console tool:list
bash bin/console router:list --json

On Windows when shell wrapper execution is unavailable, use php switon.php instead of bash bin/console.

Start Here

  • switon.yml defines app metadata, route prefixes, server options, and default filters.
  • app/Controller/ contains the example controllers.
  • add config/*.php only when you need PHP-only configuration patches.
  • public/index.php is the HTTP entrypoint.

Docs: https://docs.switon.dev/latest/tutorial

About

Official application skeleton and framework distribution for Switon Framework

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors