English
CakePHP 6 (dev) Documentation
Welcome to the CakePHP 6 Cookbook
Learn the fundamentals, build your first application, or find the guide you need.
Find your starting point
A little guidance for wherever you are in your CakePHP journey.
New to CakePHP?
Get to know the framework, its conventions, and how the pieces fit together.
Build an application
Learn by doing with a step-by-step content management system tutorial.
Upgrade your application
Prepare your existing application for CakePHP 6.
Quick start
Have PHP 8.5+ and Composer installed? Create an application and start the development server.
bash
composer create-project --prefer-dist cakephp/app:~6.0.0 my_app
cd my_app
bin/cake serverThen open localhost:8765.
Explore the guides
Jump straight to the part of your application you're working on.
HTTP
Handle requests and responses with controllers and components.
Database
Work with tables, queries, associations, and application data.
Views
Create templates, layouts, and reusable helpers.
Security
Explore the tools for protecting your application.
Testing
Build confidence with unit tests and integration tests.
Deployment
Get your application ready for production.
Get Help
You don't have to figure it all out on your own. Find support or help improve the Cookbook.