Official starter for a new Switon application.
composer create-project switon/skeleton my-app
cd my-appphp public/index.phpcreate-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 JSONhttp://127.0.0.1:9501/time/current— sample route
bash bin/console tool:list
bash bin/console router:list --jsonOn Windows when shell wrapper execution is unavailable, use php switon.php instead of bash bin/console.
switon.ymldefines app metadata, route prefixes, server options, and default filters.app/Controller/contains the example controllers.- add
config/*.phponly when you need PHP-only configuration patches. public/index.phpis the HTTP entrypoint.