Installation
This guide walks you through installing and running a new Quantum PHP project.
Requirements
Make sure your environment includes:
- PHP 8.0+;
- PHP extensions:
- PDO
- curl
- JSON
- simplexml
- fileinfo
- OpenSSL
- bcmath
- Composer installed and accessible globally
Optional framework features may require additional extensions or packages such as redis, memcached, zip, dom, or twig/twig.
Practical note: current project dependencies are Composer-platform-checked for the PHP 8 runtime line. A PHP 7.4 environment will fail before the project boots.
Installation Steps
-
Create a new project
bash composer create-project quantum/project my-projectThe current starter project runs a post-create setup sequence automatically after Composer finishes installing dependencies.
That setup currently:
- creates
.envfrom.env.example - generates an application key
- installs the demo
WebandApimodules - installs OpenAPI assets/routes for the
Apimodule - publishes DebugBar assets
- prints the installed framework version
- creates
-
Navigate into the project directory\
cd my-project -
Start the development server
bash php qt serveA built-in server will launch (typically at
http://localhost:8000/)
Verification
You should now see a working Quantum demo application in the browser.
On a successful fresh install, you should also expect that:
.envalready existsAPP_KEYhas been generated- the starter demo modules are already installed
- the CLI can boot successfully with
php qt serve