Getting Started
Install with Composer, run `php -S localhost:8000 -t public`, and edit routes in `config/routes.php`.
Routing
Define routes via `$router->get/post/any('/path', fn(...) => ...)`. Supports `{param}` segments and exact matches.
Views
Twig-ready. Place templates in `resources/views`. If Twig isn’t installed, fallback token replace keeps pages rendering.
Config
Plain PHP config files under `config/`. Helpers: `env()` reads environment vars; `config($arr, $key)` fetches values.
Deploy
Copy to your host, point webroot to `public/`, set `APP_ENV`, `APP_DEBUG`, SMTP vars if needed, and you’re live.
Config in `config/mail.php`. Set `MAIL_HOST`, `MAIL_PORT`, `MAIL_USER`, `MAIL_PASS`, `MAIL_FROM`, `MAIL_TO`. Uses PHPMailer wrapper.
CLI
Run `php bin/cursy routes` to list routes. Extend the CLI for migrations or tasks.
Theming
Use the included Cursy CSS or swap your own. Templates are plain Twig/HTML—no build step required.