SlideShare a Scribd company logo
1 of 23
What is Framework?
Framework provide scaffolding that can allow you to
develop faster/more cleanly structure. This Framework
helpful to provide you with a lot of reusable codes.
Some notable frameworks for PHP.
What is a PHP Framework?
• PHP Framework is the most popular scripting
language for many different reasons. Flexibility ,ease of
use. Its basic platform that allows us to develop
web application.
• It is provide the structure.
• You will end up saving loads of time, stopping the need to
produce repetitive code.
Principles Of MVC for PHP Developers
MVC stands for model view controller. It is good way to
clean, scalable, powerful and fast application.
Model
Model is the name given to the component that will
communicate with the database to manipulate the data. It
acts as a bridge between the View component and the
Controller component in the overall architecture
The code snippet for
running first_model.php is:
<?php
class Model
{
public $string;
public function __construct()
{
$this->string = “Let’s start php with MVC”;
}
}
?>
View :
The View requests for data from the Model component
and then its final output is determined. View interacts
with the user, and then transfers the user’s reaction to
the Controller component to respond accordingly.
To run first_view.php, type:
<?php
class View
{
private $model;
private $controller;
public function __construct($controller,$model)
{
$this->controller = $controller;
$this->model = $model;
}
public function output()
{
return “<p>”. $this->model->string . “</p>”;
}
}
?>
Controller
The Controller’s job is to handle data that the user inputs or
submits through the forms, and then Model updates this
accordingly in the database.
The code snippet for running first_controller.php is:
<?php
class Controller
{
private $model;
public function __construct($model)
{
$this->model = $model;
}
}
?>
Model of MVC:
Working:
The workings of a PHP framework is referred as Model View
Controller(MVC). MVC is an architectural pattern in
programming that isolates business logic from the UI,
allowing one to be modified separately from the other (also
known as separation of concerns). With MVC, Model refers to
data, View refers to the presentation layer, and Controller to
the application or business logic. MVC break up the process
of development of an application, so you can work on
individual elements while others are unaffected. Essentially,
this makes coding in PHP faster and less complicated.
Why framework?
Some features are given below,
1. Clean Urls ( SEO friendly Urls )
2. We can standardization!
3 .Security
4. Extensibility
5. Fast Loading
6. Reusable of code
7. increase flexibility
When to use a PHP Framework?
A framework will provide more simplicity module as well
stability in coding so it may be a good idea to use PHP
frameworks whenever possible. It will reduce time or
eliminate bad coding and speed up the build process. PHP
programmers see frameworks as tools for “weak”
programmers that don’t understand how to write good,
clean code. Whether this is true or not is up for debate, but
the fact of the matter is that PHP frameworks are a tool
that can be used to save time and tighten up one’s coding.
Benefits of using MVC
 User interface components:
 Multiple simultaneous views of the same model
 Synchronized views
 Easier user interface changes
 Easier testing
 Substitutable user interface
 Reduces the amount of repetitive coding
Disadvantages of using MVC
 More complexity
 Potensial for excessive updates
 Close coupling between view and controllers
Top 10 frameworks are available:
 Code Igniter
 Yii
 Cake PHP
 Zend
 Symfony
 PHP DevShell
 Prado
 Akelos
 Zoop
 QPHP
1. Codelgniter:
It is well-known for its ease-of-use, performance and
speed.
It offers simple solutions, and has an extensive library of
video tutorials, forums, a user guide and wiki available for
support. Beginners should consider using Codelgniter.
2. Yii:
Yii is an open source, object-oriented, component-based
MVC PHP web application framework.
3. CakePHP:
CakePHP is open source web framework. To make
developing, deploying and maintaining application. It is
base on MVC model.
4. Zend :
Zend Framework is the open source, object oriented web
application framework for PHP 5. Zend Framework is
often called a 'component library', because it has many
loosely coupled components that you can use more or less
independently.
5. Symfony :
Symfony is a PHP web application framework and a set
of reusable PHP components/libraries. The leading PHP
framework to create websites and web applications.
Built on top of the Symfony Components.
6.PhpDevShel:
PHPDevShell is an Open Source PHP framework for the
development of admin-based applications. It is fast,
stable and secure, could be also described as a Rapid
Application Development freamework use in php.
7. Prado:
The Prado framework is an open source programming
framework for creating professional web applications.
PRADO means PHP Rapid Application Development
Object-oriented. It is component-based and allows event-
driven programming
8. Akelos :
Akelos PHP Framework is a web application development
platform that is entirely based on the MVC (Model View
Controller) design pattern. It speeds up the creation of
complex web applications writing less code. Most of all it is
very prominent for creating and maintaining applications with
data and views in different and multiple languages at the same
time.
9. Zoop :
Zoop is an object oriented framework. Zoop framework
development is scalable, fast, efficient, clean, stable and
portable of course. This framework can be selected to
include only the required functionality and this is even
extendable.
10. QPHP:
It is event driven( EDP),component based web Fremework
similar as architecture to ASP.NET.This is a tool which
will help you to build any Php based website in very
easy, fast, reliable,safe way.
Comparison of framework:
• Resourses:
• CakePHP official site
• CodeIgniter Site
• http://codeigniter.com
• PHP frameworks lists
• https://phpframework.com/

More Related Content

What's hot (20)

Spring MVC Framework
Spring MVC FrameworkSpring MVC Framework
Spring MVC Framework
 
Web Services PHP Tutorial
Web Services PHP TutorialWeb Services PHP Tutorial
Web Services PHP Tutorial
 
Spring ppt
Spring pptSpring ppt
Spring ppt
 
Laravel ppt
Laravel pptLaravel ppt
Laravel ppt
 
Client side scripting and server side scripting
Client side scripting and server side scriptingClient side scripting and server side scripting
Client side scripting and server side scripting
 
PHP Presentation
PHP PresentationPHP Presentation
PHP Presentation
 
J2ee
J2eeJ2ee
J2ee
 
Django Framework and Application Structure
Django Framework and Application StructureDjango Framework and Application Structure
Django Framework and Application Structure
 
Grep - A powerful search utility
Grep - A powerful search utilityGrep - A powerful search utility
Grep - A powerful search utility
 
How To be a Backend developer
How To be a Backend developer    How To be a Backend developer
How To be a Backend developer
 
Apache web server
Apache web serverApache web server
Apache web server
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
REST & RESTful Web Services
REST & RESTful Web ServicesREST & RESTful Web Services
REST & RESTful Web Services
 
java Servlet technology
java Servlet technologyjava Servlet technology
java Servlet technology
 
Php mysql ppt
Php mysql pptPhp mysql ppt
Php mysql ppt
 
Php Ppt
Php PptPhp Ppt
Php Ppt
 
Jdbc ppt
Jdbc pptJdbc ppt
Jdbc ppt
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
PHP
PHPPHP
PHP
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 

Similar to Php Framework

Why CakePHP Is Superior to Other Web Frameworks! Examine Its Pros & Cons For ...
Why CakePHP Is Superior to Other Web Frameworks! Examine Its Pros & Cons For ...Why CakePHP Is Superior to Other Web Frameworks! Examine Its Pros & Cons For ...
Why CakePHP Is Superior to Other Web Frameworks! Examine Its Pros & Cons For ...JPLoft Solutions
 
A Good PHP Framework For Beginners Like Me!
A Good PHP Framework For Beginners Like Me!A Good PHP Framework For Beginners Like Me!
A Good PHP Framework For Beginners Like Me!Muhammad Ghazali
 
Web application development with laravel php framework version 4
Web application development with laravel php framework version 4Web application development with laravel php framework version 4
Web application development with laravel php framework version 4Untung D Saptoto
 
Trusted PHP Development Services in the USA
Trusted PHP Development Services in the USATrusted PHP Development Services in the USA
Trusted PHP Development Services in the USAtechnoprofiles
 
Top 10 best PHP frameworks for web development.pdf
Top 10 best PHP frameworks for web development.pdfTop 10 best PHP frameworks for web development.pdf
Top 10 best PHP frameworks for web development.pdfMoon Technolabs Pvt. Ltd.
 
Choose the right PHP framework for your website?
Choose the right PHP framework for your website?Choose the right PHP framework for your website?
Choose the right PHP framework for your website?XHTML Champs
 
PHP Frameworks That Will Woo-Trick Your Web Application Development in 2019
PHP Frameworks That Will Woo-Trick Your Web Application Development in 2019PHP Frameworks That Will Woo-Trick Your Web Application Development in 2019
PHP Frameworks That Will Woo-Trick Your Web Application Development in 2019Elsner Technologies Pvt Ltd
 
Which are the best PHP frameworks for web development that have a good future...
Which are the best PHP frameworks for web development that have a good future...Which are the best PHP frameworks for web development that have a good future...
Which are the best PHP frameworks for web development that have a good future...Moon Technolabs Pvt. Ltd.
 
Zend Framework In Action
Zend Framework In ActionZend Framework In Action
Zend Framework In Actionaskme
 

Similar to Php Framework (20)

MVC & CodeIgniter
MVC & CodeIgniterMVC & CodeIgniter
MVC & CodeIgniter
 
PHP Frameworks
PHP FrameworksPHP Frameworks
PHP Frameworks
 
Why CakePHP Is Superior to Other Web Frameworks! Examine Its Pros & Cons For ...
Why CakePHP Is Superior to Other Web Frameworks! Examine Its Pros & Cons For ...Why CakePHP Is Superior to Other Web Frameworks! Examine Its Pros & Cons For ...
Why CakePHP Is Superior to Other Web Frameworks! Examine Its Pros & Cons For ...
 
A Good PHP Framework For Beginners Like Me!
A Good PHP Framework For Beginners Like Me!A Good PHP Framework For Beginners Like Me!
A Good PHP Framework For Beginners Like Me!
 
Know about cake php framework with vertexplus
Know about  cake php framework with vertexplusKnow about  cake php framework with vertexplus
Know about cake php framework with vertexplus
 
Web application development with laravel php framework version 4
Web application development with laravel php framework version 4Web application development with laravel php framework version 4
Web application development with laravel php framework version 4
 
Ps02 cint24 mvc in php
Ps02 cint24 mvc in phpPs02 cint24 mvc in php
Ps02 cint24 mvc in php
 
PPT - A slice of cake php
PPT - A slice of cake phpPPT - A slice of cake php
PPT - A slice of cake php
 
Trusted PHP Development Services in the USA
Trusted PHP Development Services in the USATrusted PHP Development Services in the USA
Trusted PHP Development Services in the USA
 
cakephp UDUYKTHA (1)
cakephp UDUYKTHA (1)cakephp UDUYKTHA (1)
cakephp UDUYKTHA (1)
 
Introducing symfony
Introducing symfonyIntroducing symfony
Introducing symfony
 
Top 10 best PHP frameworks for web development.pdf
Top 10 best PHP frameworks for web development.pdfTop 10 best PHP frameworks for web development.pdf
Top 10 best PHP frameworks for web development.pdf
 
P H P Framework
P H P  FrameworkP H P  Framework
P H P Framework
 
Choose the right PHP framework for your website?
Choose the right PHP framework for your website?Choose the right PHP framework for your website?
Choose the right PHP framework for your website?
 
CakePHP Development
CakePHP DevelopmentCakePHP Development
CakePHP Development
 
Lamp Zend Security
Lamp Zend SecurityLamp Zend Security
Lamp Zend Security
 
PHP Frameworks That Will Woo-Trick Your Web Application Development in 2019
PHP Frameworks That Will Woo-Trick Your Web Application Development in 2019PHP Frameworks That Will Woo-Trick Your Web Application Development in 2019
PHP Frameworks That Will Woo-Trick Your Web Application Development in 2019
 
Which are the best PHP frameworks for web development that have a good future...
Which are the best PHP frameworks for web development that have a good future...Which are the best PHP frameworks for web development that have a good future...
Which are the best PHP frameworks for web development that have a good future...
 
Zend Framework In Action
Zend Framework In ActionZend Framework In Action
Zend Framework In Action
 
Cakephp manual-11
Cakephp manual-11Cakephp manual-11
Cakephp manual-11
 

More from cncwebworld

Introduction to android app development
Introduction to android app developmentIntroduction to android app development
Introduction to android app developmentcncwebworld
 
Angular JS tutorial
Angular JS tutorialAngular JS tutorial
Angular JS tutorialcncwebworld
 
ANGULAR JS TRAINING IN PUNE
ANGULAR JS TRAINING IN PUNEANGULAR JS TRAINING IN PUNE
ANGULAR JS TRAINING IN PUNEcncwebworld
 
Html, css and jquery introduction
Html, css and jquery introductionHtml, css and jquery introduction
Html, css and jquery introductioncncwebworld
 
.Net the begining
.Net the begining.Net the begining
.Net the beginingcncwebworld
 
Best programming language to learn in 2018
Best programming language to learn in 2018 Best programming language to learn in 2018
Best programming language to learn in 2018 cncwebworld
 
Best tech jobs in present scenario
Best tech jobs in present scenarioBest tech jobs in present scenario
Best tech jobs in present scenariocncwebworld
 

More from cncwebworld (8)

Php framework
Php frameworkPhp framework
Php framework
 
Introduction to android app development
Introduction to android app developmentIntroduction to android app development
Introduction to android app development
 
Angular JS tutorial
Angular JS tutorialAngular JS tutorial
Angular JS tutorial
 
ANGULAR JS TRAINING IN PUNE
ANGULAR JS TRAINING IN PUNEANGULAR JS TRAINING IN PUNE
ANGULAR JS TRAINING IN PUNE
 
Html, css and jquery introduction
Html, css and jquery introductionHtml, css and jquery introduction
Html, css and jquery introduction
 
.Net the begining
.Net the begining.Net the begining
.Net the begining
 
Best programming language to learn in 2018
Best programming language to learn in 2018 Best programming language to learn in 2018
Best programming language to learn in 2018
 
Best tech jobs in present scenario
Best tech jobs in present scenarioBest tech jobs in present scenario
Best tech jobs in present scenario
 

Recently uploaded

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 

Recently uploaded (20)

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 

Php Framework

  • 1.
  • 2. What is Framework? Framework provide scaffolding that can allow you to develop faster/more cleanly structure. This Framework helpful to provide you with a lot of reusable codes. Some notable frameworks for PHP.
  • 3. What is a PHP Framework? • PHP Framework is the most popular scripting language for many different reasons. Flexibility ,ease of use. Its basic platform that allows us to develop web application. • It is provide the structure. • You will end up saving loads of time, stopping the need to produce repetitive code.
  • 4. Principles Of MVC for PHP Developers MVC stands for model view controller. It is good way to clean, scalable, powerful and fast application. Model Model is the name given to the component that will communicate with the database to manipulate the data. It acts as a bridge between the View component and the Controller component in the overall architecture
  • 5. The code snippet for running first_model.php is: <?php class Model { public $string; public function __construct() { $this->string = “Let’s start php with MVC”; } } ?>
  • 6. View : The View requests for data from the Model component and then its final output is determined. View interacts with the user, and then transfers the user’s reaction to the Controller component to respond accordingly.
  • 7. To run first_view.php, type: <?php class View { private $model; private $controller; public function __construct($controller,$model) { $this->controller = $controller; $this->model = $model; } public function output() { return “<p>”. $this->model->string . “</p>”; } } ?>
  • 8. Controller The Controller’s job is to handle data that the user inputs or submits through the forms, and then Model updates this accordingly in the database. The code snippet for running first_controller.php is: <?php class Controller { private $model; public function __construct($model) { $this->model = $model; } } ?>
  • 10. Working: The workings of a PHP framework is referred as Model View Controller(MVC). MVC is an architectural pattern in programming that isolates business logic from the UI, allowing one to be modified separately from the other (also known as separation of concerns). With MVC, Model refers to data, View refers to the presentation layer, and Controller to the application or business logic. MVC break up the process of development of an application, so you can work on individual elements while others are unaffected. Essentially, this makes coding in PHP faster and less complicated.
  • 11. Why framework? Some features are given below, 1. Clean Urls ( SEO friendly Urls ) 2. We can standardization! 3 .Security 4. Extensibility 5. Fast Loading 6. Reusable of code 7. increase flexibility
  • 12. When to use a PHP Framework? A framework will provide more simplicity module as well stability in coding so it may be a good idea to use PHP frameworks whenever possible. It will reduce time or eliminate bad coding and speed up the build process. PHP programmers see frameworks as tools for “weak” programmers that don’t understand how to write good, clean code. Whether this is true or not is up for debate, but the fact of the matter is that PHP frameworks are a tool that can be used to save time and tighten up one’s coding.
  • 13. Benefits of using MVC  User interface components:  Multiple simultaneous views of the same model  Synchronized views  Easier user interface changes  Easier testing  Substitutable user interface  Reduces the amount of repetitive coding
  • 14. Disadvantages of using MVC  More complexity  Potensial for excessive updates  Close coupling between view and controllers
  • 15. Top 10 frameworks are available:  Code Igniter  Yii  Cake PHP  Zend  Symfony  PHP DevShell
  • 16.  Prado  Akelos  Zoop  QPHP
  • 17. 1. Codelgniter: It is well-known for its ease-of-use, performance and speed. It offers simple solutions, and has an extensive library of video tutorials, forums, a user guide and wiki available for support. Beginners should consider using Codelgniter. 2. Yii: Yii is an open source, object-oriented, component-based MVC PHP web application framework.
  • 18. 3. CakePHP: CakePHP is open source web framework. To make developing, deploying and maintaining application. It is base on MVC model. 4. Zend : Zend Framework is the open source, object oriented web application framework for PHP 5. Zend Framework is often called a 'component library', because it has many loosely coupled components that you can use more or less independently.
  • 19. 5. Symfony : Symfony is a PHP web application framework and a set of reusable PHP components/libraries. The leading PHP framework to create websites and web applications. Built on top of the Symfony Components. 6.PhpDevShel: PHPDevShell is an Open Source PHP framework for the development of admin-based applications. It is fast, stable and secure, could be also described as a Rapid Application Development freamework use in php.
  • 20. 7. Prado: The Prado framework is an open source programming framework for creating professional web applications. PRADO means PHP Rapid Application Development Object-oriented. It is component-based and allows event- driven programming 8. Akelos : Akelos PHP Framework is a web application development platform that is entirely based on the MVC (Model View Controller) design pattern. It speeds up the creation of complex web applications writing less code. Most of all it is very prominent for creating and maintaining applications with data and views in different and multiple languages at the same time.
  • 21. 9. Zoop : Zoop is an object oriented framework. Zoop framework development is scalable, fast, efficient, clean, stable and portable of course. This framework can be selected to include only the required functionality and this is even extendable. 10. QPHP: It is event driven( EDP),component based web Fremework similar as architecture to ASP.NET.This is a tool which will help you to build any Php based website in very easy, fast, reliable,safe way.
  • 23. • Resourses: • CakePHP official site • CodeIgniter Site • http://codeigniter.com • PHP frameworks lists • https://phpframework.com/