SlideShare ist ein Scribd-Unternehmen logo
1 von 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/

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Introduction to Angularjs
Introduction to AngularjsIntroduction to Angularjs
Introduction to Angularjs
 
Express js
Express jsExpress js
Express js
 
Fast api
Fast apiFast api
Fast api
 
Types of Drivers in JDBC
Types of Drivers in JDBCTypes of Drivers in JDBC
Types of Drivers in JDBC
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Servlets
ServletsServlets
Servlets
 
Developing Java Web Applications
Developing Java Web ApplicationsDeveloping Java Web Applications
Developing Java Web Applications
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET Framework
 
Web servers
Web serversWeb servers
Web servers
 
Laravel Introduction
Laravel IntroductionLaravel Introduction
Laravel Introduction
 
MVC - Introduction
MVC - IntroductionMVC - Introduction
MVC - Introduction
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Asp Architecture
Asp ArchitectureAsp Architecture
Asp Architecture
 
Advantages-and-Disadvantages-of-P2P-Network-Client-Server-Network.pdf
Advantages-and-Disadvantages-of-P2P-Network-Client-Server-Network.pdfAdvantages-and-Disadvantages-of-P2P-Network-Client-Server-Network.pdf
Advantages-and-Disadvantages-of-P2P-Network-Client-Server-Network.pdf
 
Dot Net Core
Dot Net CoreDot Net Core
Dot Net Core
 
Portfolio Web Developer
Portfolio Web DeveloperPortfolio Web Developer
Portfolio Web Developer
 
Basic WordPress for Beginner ppt
Basic WordPress for Beginner pptBasic WordPress for Beginner ppt
Basic WordPress for Beginner ppt
 
Introduction to Web Hosting.
Introduction to Web Hosting.Introduction to Web Hosting.
Introduction to Web Hosting.
 
Web servers
Web serversWeb servers
Web servers
 

Ähnlich wie Php Framework

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
Untung D Saptoto
 
Zend Framework In Action
Zend Framework In ActionZend Framework In Action
Zend Framework In Action
askme
 

Ähnlich wie 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
 

Mehr von cncwebworld

Mehr von 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
 

Kürzlich hochgeladen

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
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
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
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
SoniaTolstoy
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 

Kürzlich hochgeladen (20)

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
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
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
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
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
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

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/