A hands-on tutorial series on building a PHP framework from scratch, inspired by Symfony and Spring. Part One covers the foundational structure: setting up the project with Composer autoloading, creating a Request class that parses PHP superglobals, a Response class with header/body sending logic, and a basic Kernel that wires them together. The author deliberately avoids building an ORM or templating engine to keep focus on the core HTTP lifecycle. The result is a minimal but functional bootstrapping layer that handles a request and returns a response.

10m read timeFrom chrastecky.dev
Post cover image
Table of contents
What, how and why (aka the intro)Step 0: Code StructureStep 1: The Entrypoint & KernelStep 2: Request & ResponseStep 3: Wiring It UpSummary of changes

Sort: