Rapid development MVC framework for PHP, with conventions and batteries included
open sourceMITfree
CakePHP is one of the original PHP MVC frameworks, built around conventions instead of configuration: set up a database and its bake code generator scaffolds models, controllers and views. It includes an ORM and query builder, translations, caching, validation, authentication and a form builder, with built-in CSRF, form-tampering and SQL injection protection, and its codebase was audited through Mozilla's Secure Open Source program. Version 5.4 added a distributed lock facade, a built-in dependency injection container and streaming JSON responses. New projects usually start from its app skeleton, and CakeDC, founded by CakePHP's creator Larry Masters, sells development, training and support.
Problems it solves
- build a database-backed PHP web app quickly without lots of configuration
- scaffold models, controllers and views from my database tables in PHP
- pick a mature PHP MVC framework with an ORM, validation and auth built in
Features
- Convention-over-configuration MVC with the bake code generator and scaffolding
- ORM and query builder with eager loading
- Built-in translations, caching, validation, authentication and form building
- CSRF, form-tampering and SQL injection protection, audited through Mozilla's Secure Open Source program
- Built-in dependency injection container and distributed locks (5.4)
Alternatives
The same job
These do what CakePHP does.
- CodeIgniter The small framework with powerful features
- Yii PHP framework for rapid development of modern applications
- Laravel The PHP framework for web artisans.
- Symfony A PHP framework for web applications, built from reusable components
- Phalcon High performance, full-stack PHP framework delivered as a C extension
