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)

Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Web servers
Web serversWeb servers
Web servers
 
Modern Web Development
Modern Web DevelopmentModern Web Development
Modern Web Development
 
The Full Stack Web Development
The Full Stack Web DevelopmentThe Full Stack Web Development
The Full Stack Web Development
 
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
 
An Introduction To REST API
An Introduction To REST APIAn Introduction To REST API
An Introduction To REST API
 
Yii framework
Yii frameworkYii framework
Yii framework
 
Web application framework
Web application frameworkWeb application framework
Web application framework
 
Web Development
Web DevelopmentWeb Development
Web Development
 
.Net Core
.Net Core.Net Core
.Net Core
 
Web Application Introduction
Web Application  IntroductionWeb Application  Introduction
Web Application Introduction
 
Joomla CMS SEMINAR PPT
Joomla CMS SEMINAR PPTJoomla CMS SEMINAR PPT
Joomla CMS SEMINAR PPT
 
Restful web services ppt
Restful web services pptRestful web services ppt
Restful web services ppt
 
Php introduction
Php introductionPhp introduction
Php introduction
 
Angular overview
Angular overviewAngular overview
Angular overview
 
ASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP FundamentalsASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP Fundamentals
 
Node.js Basics
Node.js Basics Node.js Basics
Node.js Basics
 
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
 
Querying XML: XPath and XQuery
Querying XML: XPath and XQueryQuerying XML: XPath and XQuery
Querying XML: XPath and XQuery
 
Javascript
JavascriptJavascript
Javascript
 

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

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
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
 
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
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
_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
 
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
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
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
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 

Recently uploaded (20)

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
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
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
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
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
_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
 
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
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
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
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 

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/