Component Oriented PHP Tutorials

Basic Tutorial

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).

TOC

  1. Front Controller
  2. Routing 1: Vanilla Router
  3. Composer
  4. Routing 2: Installing a Routing Package
  5. Error Handling
  6. Dispatching to a Class
  7. Templates
  8. Inversion of Control, Service Locator and Dependency Injection
  9. Configuration and Helpers
  10. Markdown Parsing and Dynamic Pages
  11. Fixing Response Coupling in Controllers (optional chapter)
  12. Middlewares: WORK IN PROGRESS
  13. Wrapup

Scope of Application We Are Building in This Tutorial

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.

Notes