Skip to content

Quantum PHPBuild with clarity.

Documentation for Quantum PHP 3.x: build websites, APIs, and applications with a modular framework.

Quantum PHP logo

New to Quantum? Start with What is Quantum?, then read Why Quantum? to see how the framework is structured and what it offers.

Your first Quantum project ​

Get a working application running locally, then explore the framework one piece at a time.

bash
composer create-project quantum/project my-project
cd my-project
php qt serve

Open the address printed by the development server. The Quickstart walks through each step and shows where to go next.

Add your first route ​

In a module's routes/routes.php file, map a request to a controller action:

php
return function ($route) {
    $route->get('/', 'MainController', 'index');
};

This maps GET / to MainController::index(). See the Routing guide to learn about route patterns, groups, and middleware.

See how a request becomes a response ​

text
Request → Bootstrap → Route → Middleware → Cache or Controller → Response

Quantum starts the application, matches a route, runs route middleware, then serves a cached response or dispatches the controller. The Request Lifecycle guide explains the full flow.

Find the tools for your application ​

  • Authentication — explore sign-in and identity related package behavior.
  • Database — learn how Quantum works with data.
  • Cache — discover the available caching options.
  • CLI — find the commands that help during development.

Ready to explore further? Use the Docs navigation and search to browse all Quantum PHP 3.x guides and package references.