Skip to content

LighthouseAn Educational PHP Framework

Learn how modern frameworks work by building one from scratch

Quick Start ​

bash
composer create-project lighthouse/skeleton my-app
cd my-app
composer start

Then visit http://localhost:8000

Why Lighthouse? ​

Most PHP developers use frameworks without understanding how they work internally. Lighthouse exists to change that.

This isn't another framework competing with Laravel or Symfony. It's an educational accelerator designed to make those frameworks understandable.

After working through Lighthouse, you'll:

  • Understand the HTTP request lifecycle
  • Know how dependency injection really works
  • See why middleware is powerful
  • Feel confident reading framework source code

The Packages ​

PackageDescription
lighthouse/httpPSR-7 HTTP messages
lighthouse/containerPSR-11 dependency injection
lighthouse/middlewarePSR-15 middleware pipeline
lighthouse/routerHTTP routing with parameters
lighthouse/viewPHP template engine
lighthouse/error-handlerError and exception handling
lighthouse/frameworkThe application kernel

Released under the MIT License.