switon/skeleton

Official starter application for Switon Framework

Maintainers

Package info

github.com/switon-php/skeleton

Documentation

Type:project

pkg:composer/switon/skeleton

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-06-06 13:43 UTC

This package is auto-updated.

Last update: 2026-06-07 05:33:55 UTC


README

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