SlideShare a Scribd company logo
1 of 23
Download to read offline
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

JavaScript - Kristiansand PHP
JavaScript - Kristiansand PHPJavaScript - Kristiansand PHP
JavaScript - Kristiansand PHPholeedave
 
List of 7 popular java frameworks for 2019
List of 7 popular java frameworks for 2019  List of 7 popular java frameworks for 2019
List of 7 popular java frameworks for 2019 kritikumar16
 
PHP Frameworks & Introduction to CodeIgniter
PHP Frameworks & Introduction to CodeIgniterPHP Frameworks & Introduction to CodeIgniter
PHP Frameworks & Introduction to CodeIgniterJamshid Hashimi
 
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
 
Top 7 php frameworks for startups 2019
Top 7 php frameworks for startups   2019Top 7 php frameworks for startups   2019
Top 7 php frameworks for startups 2019ValueCoders
 
Web Programming - 2 Web Framework
Web Programming - 2 Web FrameworkWeb Programming - 2 Web Framework
Web Programming - 2 Web FrameworkAndiNurkholis1
 
Java useful in Mule
Java useful in MuleJava useful in Mule
Java useful in MuleShahid Shaik
 
Why choose Yii framework?
Why choose Yii framework?Why choose Yii framework?
Why choose Yii framework?goodcore
 
Spring vs. asp.net mvc
Spring vs. asp.net mvcSpring vs. asp.net mvc
Spring vs. asp.net mvcUmar Ali
 
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)Beat Signer
 
Basics of asp.net mvc
Basics of asp.net mvc Basics of asp.net mvc
Basics of asp.net mvc Micky S
 
Creating MVC Application with backbone js
Creating MVC Application with backbone jsCreating MVC Application with backbone js
Creating MVC Application with backbone jsMindfire Solutions
 
Spring Framework Tutorial | VirtualNuggets
Spring Framework Tutorial | VirtualNuggetsSpring Framework Tutorial | VirtualNuggets
Spring Framework Tutorial | VirtualNuggetsVirtual Nuggets
 
Web Programming - 3 Laravel Framework
Web Programming - 3 Laravel FrameworkWeb Programming - 3 Laravel Framework
Web Programming - 3 Laravel FrameworkAndiNurkholis1
 

What's hot (20)

JavaScript - Kristiansand PHP
JavaScript - Kristiansand PHPJavaScript - Kristiansand PHP
JavaScript - Kristiansand PHP
 
List of 7 popular java frameworks for 2019
List of 7 popular java frameworks for 2019  List of 7 popular java frameworks for 2019
List of 7 popular java frameworks for 2019
 
Why MVC?
Why MVC?Why MVC?
Why MVC?
 
PHP Frameworks & Introduction to CodeIgniter
PHP Frameworks & Introduction to CodeIgniterPHP Frameworks & Introduction to CodeIgniter
PHP Frameworks & Introduction to CodeIgniter
 
ColdFusion 11 New Features
ColdFusion 11 New FeaturesColdFusion 11 New Features
ColdFusion 11 New Features
 
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?
 
Top 7 php frameworks for startups 2019
Top 7 php frameworks for startups   2019Top 7 php frameworks for startups   2019
Top 7 php frameworks for startups 2019
 
P H P Framework
P H P  FrameworkP H P  Framework
P H P Framework
 
Php website developers sydney
Php website developers sydneyPhp website developers sydney
Php website developers sydney
 
Web Programming - 2 Web Framework
Web Programming - 2 Web FrameworkWeb Programming - 2 Web Framework
Web Programming - 2 Web Framework
 
Java useful in Mule
Java useful in MuleJava useful in Mule
Java useful in Mule
 
Java in Mule
Java in MuleJava in Mule
Java in Mule
 
Why choose Yii framework?
Why choose Yii framework?Why choose Yii framework?
Why choose Yii framework?
 
Mvc Architecture in a web based application
Mvc Architecture in a web based applicationMvc Architecture in a web based application
Mvc Architecture in a web based application
 
Spring vs. asp.net mvc
Spring vs. asp.net mvcSpring vs. asp.net mvc
Spring vs. asp.net mvc
 
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)
Web Application Frameworks - Lecture 05 - Web Information Systems (4011474FNR)
 
Basics of asp.net mvc
Basics of asp.net mvc Basics of asp.net mvc
Basics of asp.net mvc
 
Creating MVC Application with backbone js
Creating MVC Application with backbone jsCreating MVC Application with backbone js
Creating MVC Application with backbone js
 
Spring Framework Tutorial | VirtualNuggets
Spring Framework Tutorial | VirtualNuggetsSpring Framework Tutorial | VirtualNuggets
Spring Framework Tutorial | VirtualNuggets
 
Web Programming - 3 Laravel Framework
Web Programming - 3 Laravel FrameworkWeb Programming - 3 Laravel Framework
Web Programming - 3 Laravel Framework
 

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
 
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.
 
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
 
IRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHPIRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHPIRJET Journal
 
A report on mvc using the information
A report on mvc using the informationA report on mvc using the information
A report on mvc using the informationToushik Paul
 
PHP Frameworks and CodeIgniter
PHP Frameworks and CodeIgniterPHP Frameworks and CodeIgniter
PHP Frameworks and CodeIgniterKHALID C
 
Top 6 leading PHP frameworks for web development
Top 6 leading PHP frameworks for web developmentTop 6 leading PHP frameworks for web development
Top 6 leading PHP frameworks for web developmentAppfinz Technologies
 
Phpbasics And Php Framework
Phpbasics And Php FrameworkPhpbasics And Php Framework
Phpbasics And Php Frameworkshivas
 
Web application framework
Web application frameworkWeb application framework
Web application frameworkPankaj Chand
 

Similar to Php framework (20)

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!
 
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
 
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
 
IRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHPIRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHP
 
Top 5 advanced php framework in 2018
Top 5 advanced php framework in 2018Top 5 advanced php framework in 2018
Top 5 advanced php framework in 2018
 
A report on mvc using the information
A report on mvc using the informationA report on mvc using the information
A report on mvc using the information
 
PHP Frameworks and CodeIgniter
PHP Frameworks and CodeIgniterPHP Frameworks and CodeIgniter
PHP Frameworks and CodeIgniter
 
Top 6 leading PHP frameworks for web development
Top 6 leading PHP frameworks for web developmentTop 6 leading PHP frameworks for web development
Top 6 leading PHP frameworks for web development
 
Phpbasics And Php Framework
Phpbasics And Php FrameworkPhpbasics And Php Framework
Phpbasics And Php Framework
 
Web application framework
Web application frameworkWeb application framework
Web application framework
 

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)

Introduction to android app development
Introduction to android app developmentIntroduction to android app development
Introduction to android app development
 
Php Framework
Php FrameworkPhp Framework
Php Framework
 
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

THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 

Recently uploaded (20)

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🔝
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 

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/