Description #
CakePHP is a rapid development framework for PHP that uses conventions over configuration to simplify web application development.
History #
Released in 2005 by Michal Tatarynowicz and maintained by the Cake Software Foundation, CakePHP was one of the first PHP MVC frameworks to gain widespread adoption.
Hello World Code #
echo "Hello, World!";
(In CakePHP, this would be output from a controller action.)
How to Run #
Option 1: Online
PHP Fiddle
Option 2: Local
Install via Composer:
composer create-project --prefer-dist cakephp/app:~4.0 hello_app
cd hello_app
bin/cake server
Key Concepts #
- MVC architecture
- Convention over configuration
- ORM and query builder
- Bake code generator
- Routing and middleware
- Form and validation helpers
- Security features
- Plugin support
- Unit testing integration
- Strong backward compatibility
Try It Online #
Fun Facts #
CakePHP inspired many other PHP frameworks, including early versions of Laravel.