Monday, 9 March 2015

Cake PHP(part 1)

The Rapid Development PHP Framework

What is Cake PHP?

According to the official Cake PHP website, cakephp.org,

“CakePHP is a rapid development framework for PHPthat provides an extensible architecture for developing, maintaining, and deploying applications.
Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code”

  

History

Cake PHP was created by Michal Tatarynowicz On April 15, 2005.Inspired by Roby on Rails.Michal published it under MIT license and opened it to the community developers.In July 2005, Larry E Masters (aka PhpNut) took over as
the lead developer.In December 2005, Larry and Garrett J. Woodworth (aka gwoo) founded the Cake Software Foundation to promote development related to Cake PHP.

Features of Cake PHP

it’s PHP! Compatibles with versions 4 and 5. Open Source, MIT license.Object Oriented. Design Patterns: MVC and ORM.Convention over configuration. Framework not set of libraries. Bake Script: Automates CRUD scripting

MVC pattern

PHP Cake enforces Model View Controller (MVC) Pattern.Cake splits operations into three parts:
  1. Models: used for all database interactions.
  2. Views: used for all output and displays.
  3.  Controllers: used to control the application flow.
why Cake PHP MVC?
  1. Reduce redundancy
  2. Organize the different tasks of the web app.
  3. No need for include statements in PHP scripts.
  4. Follow Agile techniques.
  5. Easy to debug and maintain

No comments:

Post a Comment