Tiny PHP Framework

Home Getting Started Core Concepts Helpers Extensions Repo

Examples

End-to-end walkthroughs that exercise the framework’s primitives in real-world shapes. Each example is self-contained — clone the project, run the migration, copy the files, and it works.

Walkthrough What it covers
TODO application CRUD, components, layouts, CSRF, flash messages, raw SQL
JSON API Versioned routes, bearer-token auth, rate limiting, CORS, pagination
File uploads $_FILES, MIME verification, optional S3-compatible mirroring
Real-time chat (SSE) tiny::sse()->streamKey/sendKey, room-keyed delivery, EventSource client
User management Sessions, password hashing, password reset, profile updates, role checks

What you’ll see across all examples

Every example sticks to APIs documented in Core concepts and Extensions — no invented helpers, no ORM relations, no magic auth layer.

Prerequisites

A fresh Tiny project (php tiny/cli create), Composer dependencies installed, and a database configured via TINY_DB_* env vars. Some examples reference users and tiny::user() — see the User management walkthrough for how that table and middleware are wired up.