The basic tutorial is more of a modern rewrite of the original tutorial by Patrick Louys & contributors. You will find more exciting stuff in the advanced tutorial. Start below.
I have brought major changes to the original tutorial, even adding a few new chapters and removing a few, moving some to the advanced tutorial. The goal is to keep it simple and focused on the essentials of building a web application without a framework (and without reinventing the wheel).
- Front Controller
- Routing 1: Vanilla Router
- Composer
- Routing 2: Installing a Routing Package
- Error Handling
- Dispatching to a Class
- Templates
- Inversion of Control, Service Locator and Dependency Injection
- Configuration and Helpers
- Markdown Parsing and Dynamic Pages
- Fixing Response Coupling in Controllers (optional chapter)
- Middlewares: WORK IN PROGRESS
- Wrapup
The goal is to teach you how to glue components together to build applications. We will be building a very simple application where in you can write content as markdown, render list of pages on homepage, and view each page. That's it.
- This tutorial won't teach you PHP. It teaches you how to glue composer packages to create web apps.
- Don't just read. Code alongside the lessons. Final output for this basic tutorial is here.
- You can start discussions here.