SlideShare a Scribd company logo
Object-Oriented
Programming

(with Laravel)
By: Shahrzad Peyman
Session 1
March-2017
shahrzad.peymaan@gmail.com
1
Today’s Presentation
▪ What is PHP?
▪ Object Oriented Programming
▪ Introduction to PHP Syntax
▪ Composer
▪ Framework
▪ MVC
▪ Laravel
2
What is PHP?
▪ PHP is a popular, general-purpose and server-side scripting
language that is especially suited to web development.
▪ Commonly used to build web applications.
▪ PHP: Personal Home Page --- Php Hypertext Preprocessor
▪ PHP (Hypertext Preprocessor) was created by Rasmus Lerdorf in
1994. It is now developed and improved by a large team of
people.
▪ http://www.php.net
3
PHP History
PHP2 1995 Added database support, file uploads,
variables, arrays, recursive functions,
conditionals, iterations, regular expression and
etc.
PHP3 1998 Added support of ODBC data sources, multiple
platform support, email protocol, and new parser
written by Zeev Suraski and Andi Gutmans.
PHP4 2000 The parser was renamed the Zend Engine. Many
security features were added.
PHP5 2004 Adds Zend Engine 2 with object oriented
programming, robust XML support, SOAP
extension for interoperability with Web Services,
SQLLite has been bundled with PHP.
PHP7 2015 Revolution in PHP
4
Scripting Language
▪ A scripting language is a programming language that employs a
high-level construct to interpret and execute one command at a
time.
▪ Interpreted at runtime
5
Who Uses PHP?
▪ Yahoo!
▪ Facebook (HACK)
▪ Wikipedia
▪ 20+ million other domain names
6
Which Tools Based on PHP?
▪ Wordpress (Blog engine)
▪ Drupal (CMS)
▪ Slack (Chat Service)
▪ Joomla (CMS)
➢As of January 2013, PHP was used in more than 240
million websites (39% of those sampled) and was installed on
2.1 million web servers.
7
Why I Choose PHP?
▪ Cost nothing, it is free to download and use.
▪ Open source
▪ Runs on different platforms
▪ Codes and solutions are easily available
▪ Lots and lots of knowledge and documentation
▪ Speed of development
8
Working of PHP?
9
Object-Oriented Programming
What is Object-Oriented Programming (OOP)?
Object-oriented programming (OOP) is a programming paradigm
based on the concept of "objects".
So,
Objects are key to understanding object-oriented technology.
10
What is Object?
❖Many examples of real-world objects
▪ your Book, your PC, your Mobile, your Computer mouse and so on.
❖Real-world objects share two characteristics:
▪ State
▪ Behavior
❖Software Objects
▪ Modeled after real-world objects.
▪ Maintains its states in variables or attributes.
▪ Implements its behaviors with methods.
11
Objects
▪ E.g. A Computer Mouse is a real-world Object. Its states would be
its color, size and brand name and its behaviors would be left-
click, right-click and middle click.
▪ Software object that modeled your real-world computer mouse.
▪ Have variables(attributes) that indicated the computer mouse’s current
states:
▪ Its color is black.
▪ Its size is medium.
▪ Its brand name is Genius.
▪ Have methods that indicated the computer mouse’s current behaviors
like left-click, right-click and middle click.
12
What is Class?
▪ A class is a prototype that defines the variables and the methods
common to all objects of a certain kind.
▪ A class is an entity that helps the programmer to define a new
complex data type.
➢An object is an instance of a class.
➢A class defines the data and behavior of objects.
➢E.g. Apple, Orange and banana are members of the fruit class.
13
Introduction to PHP Syntax
▪ PHP has quality easy syntax. If you are familiar with any c-type
language
▪ It has all the same structures that you are familiar with other
programming languages
▪ PHP is designed to output to browser, but it is possible to do also
CLI apps
14
Variables
▪ Variables in PHP are represented by a dollar sign ($).
▪ PHP supports nine main types:
▪ boolean
▪ integer
▪ float
▪ double
▪ string
▪ array
▪ object
▪ resource
▪ NULL
▪ Case-sensitivity
▪ Start with letter or _
▪ After that you can have numbers, letters and _
15
Booleans
▪ Simple Type
▪ A boolean expresses a truth value. It can be either TRUE or False
(case-insensitive).
16
Integers
▪ An integer is a number of the Set Z = { … , -2 , -1 , 0 , 1 , 2 , … }
▪ Integers can be specified in decimal (base 10), hexadecimal
(base 16), octal (base 8) or binary (base 2) notation, optionally
preceded by a sign ( - or + ).
17
Array
▪ An array in PHP is actually an ordered map. A map is a type that
associates values to keys.
▪ This type is optimized for several different uses:
▪ Array
▪ List (vector)
▪ Hash table
▪ Dictionary
▪ Collection
▪ Stack
▪ Queue
▪ …
18
NULL
▪ The special Null value represents a variable with no value.
▪ NULL is the only possible value of type null.
▪ A variable is considered to be null if:
▪ It has been assigned the constant NULL.
▪ It has not been set to any value yet.
▪ It has been unset()
19
Functions
▪ A function may be defined using syntax such as the following:
▪ Any valid PHP code may appear inside a function, even other
functions.
20
Class in PHP
▪ Basic class definitions begin with the keyword class, followed by
a class name
▪ Then, followed by a pair of curly braces which enclose the
definitions of the properties and methods belonging to the class.
21
Object in PHP
▪ Instance of class
22
Namespace
▪ Provide a way in which to group related classes, functions,
constants and others.
▪ An abstract concept in many places.
▪ In PHP world, namespaces are designed to solve two problems:
▪ Name collisions between code you create
▪ Improving readability of source code (Ability to alias)
23
Composer
▪ Composer is a tool for dependency management in PHP. It allows
you to declare the libraries your project depends on and it will
manage (install/update) them for you.
▪ Use:
▪ Install Composer
▪ In root of your project, Create a text file (JSON File) – composer.json
▪ Require all libraries you want to use it
▪ Composer install
24
What is Framework?
▪ An application framework is a software library that provides a
fundamental structure to support the development
of applications for a specific environment.
▪ In computer systems, a framework is often a layered structure
indicating what kind of programs can or should be built and how
they would interrelate.
▪ A PHP Framework is a basic platform that allows us to develop
web applications. In other words, it provides structure. By using
a PHP Framework, you will end up saving loads of time, stopping
the need to produce repetitive code, and you'll be able to build
applications rapidly (RAD).
25
MVC: Model-View-Controller
▪ Model–View–Controller (MVC) is a software design pattern for
implementing user interfaces on computers.
▪ It divides a given application into three interconnected parts in
order to separate internal representations of information from the
ways that information is presented to and accepted from the user.
▪ Popular programming languages like Java, C#, Ruby, PHP and
others have popular MVC frameworks.
26
Laravel
▪ Laravel is a free, open-source PHP web framework created by
Taylor Otwell.
▪ Intended for the development of web applications following
the model–view–controller (MVC) architectural pattern.
➢As of March 2015, Laravel is regarded as one of the most
popular PHP frameworks, together
with Symfony2, Nette, CodeIgniter, Yii2 and other frameworks.
27
Laravel Requirements:
▪ The Laravel framework has a few system requirements:
▪ PHP >= 5.6.4
▪ OpenSSL PHP Extension
▪ PDO PHP Extension
▪ Mbstring PHP Extension
▪ Tokenizer PHP Extension
▪ XML PHP Extension
Laravel utilizes Composer to manage its dependencies. So, before
using Laravel, make sure you have Composer installed on your
machine.
28
Install Laravel
▪ First, download the Laravel installer using Composer:
▪ composer global require "laravel/installer“
▪ laravel new blog
29

More Related Content

What's hot (20)

PPTX
Design pattern-presentation
Rana Muhammad Asif
 
PPTX
ReactJS presentation.pptx
DivyanshGupta922023
 
PPTX
Introduction to Spring Boot
Purbarun Chakrabarti
 
PDF
Spring Boot
Jaydeep Kale
 
PDF
Spring Boot
Jaran Flaath
 
PPTX
Spring boot - an introduction
Jonathan Holloway
 
PPTX
Difference between frontend and backend
Rahul Rana
 
PPTX
Solid principles
Monica Rodrigues
 
PDF
Vue.js
Jadson Santos
 
PPTX
Introduction to Spring Framework
Serhat Can
 
PPTX
Dependency injection presentation
Ahasanul Kalam Akib
 
PPTX
Lecture 2_ Intro to laravel.pptx
SaziaRahman
 
DOCX
Angular Interview Questions & Answers
Ratnala Charan kumar
 
PDF
Laravel tutorial
Broker IG
 
PPTX
Spring & hibernate
Santosh Kumar Kar
 
PDF
Spring annotation
Rajiv Srivastava
 
PPTX
Introduction to React JS
Arnold Asllani
 
PPTX
Angular overview
Thanvilahari
 
PPTX
Laravel
tanveerkhan62
 
PDF
Microservices with Java, Spring Boot and Spring Cloud
Eberhard Wolff
 
Design pattern-presentation
Rana Muhammad Asif
 
ReactJS presentation.pptx
DivyanshGupta922023
 
Introduction to Spring Boot
Purbarun Chakrabarti
 
Spring Boot
Jaydeep Kale
 
Spring Boot
Jaran Flaath
 
Spring boot - an introduction
Jonathan Holloway
 
Difference between frontend and backend
Rahul Rana
 
Solid principles
Monica Rodrigues
 
Introduction to Spring Framework
Serhat Can
 
Dependency injection presentation
Ahasanul Kalam Akib
 
Lecture 2_ Intro to laravel.pptx
SaziaRahman
 
Angular Interview Questions & Answers
Ratnala Charan kumar
 
Laravel tutorial
Broker IG
 
Spring & hibernate
Santosh Kumar Kar
 
Spring annotation
Rajiv Srivastava
 
Introduction to React JS
Arnold Asllani
 
Angular overview
Thanvilahari
 
Laravel
tanveerkhan62
 
Microservices with Java, Spring Boot and Spring Cloud
Eberhard Wolff
 

Similar to Object Oriented Programming with Laravel - Session 1 (20)

PDF
Essential Guide To Php For All Levels O Adeolu
glouxrashiq71
 
PPTX
PHP Fundamentals: A Comprehensive Introduction
Nilesh Valva
 
PPTX
introduction to web programming using PHP
vishnupriyapm4
 
PPTX
Unit 4-6 sem 7 Web Technologies.pptx
prathameshp9922
 
PDF
PHP Web Development.pdf
Sonia Simi
 
PPTX
Web programming using PHP and Introduction with sample codes
DivyaKS12
 
PPTX
PHP TRAINING
gurjinderbains
 
PPTX
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
PPT
Introduction to PHP - SDPHP
Eric Johnson
 
PPTX
Introduction to PHP OOP
fakhrul hasan
 
PPT
PHP MySQL Workshop - facehook
Shashank Skills Academy
 
PDF
Web Design & Development - Session 7
Shahrzad Peyman
 
PPTX
php.pptx
nusky ahamed
 
PDF
PHP Web Development: Empowering the Digital World
company
 
PDF
Introduction to PHP (SDPHP)
Eric Johnson
 
PDF
PHP Web Development.pdf
Fariha Tasnim
 
PDF
"Building Modern PHP Applications" - Jackson Murtha, South Dakota Code Camp 2012
Blend Interactive
 
PPT
Php unit i
prakashvs7
 
PPTX
Introduction to webprogramming using PHP and MySQL
anand raj
 
PPTX
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
DRambabu3
 
Essential Guide To Php For All Levels O Adeolu
glouxrashiq71
 
PHP Fundamentals: A Comprehensive Introduction
Nilesh Valva
 
introduction to web programming using PHP
vishnupriyapm4
 
Unit 4-6 sem 7 Web Technologies.pptx
prathameshp9922
 
PHP Web Development.pdf
Sonia Simi
 
Web programming using PHP and Introduction with sample codes
DivyaKS12
 
PHP TRAINING
gurjinderbains
 
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
Introduction to PHP - SDPHP
Eric Johnson
 
Introduction to PHP OOP
fakhrul hasan
 
PHP MySQL Workshop - facehook
Shashank Skills Academy
 
Web Design & Development - Session 7
Shahrzad Peyman
 
php.pptx
nusky ahamed
 
PHP Web Development: Empowering the Digital World
company
 
Introduction to PHP (SDPHP)
Eric Johnson
 
PHP Web Development.pdf
Fariha Tasnim
 
"Building Modern PHP Applications" - Jackson Murtha, South Dakota Code Camp 2012
Blend Interactive
 
Php unit i
prakashvs7
 
Introduction to webprogramming using PHP and MySQL
anand raj
 
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
DRambabu3
 
Ad

More from Shahrzad Peyman (12)

PDF
Web Design & Development - Session 9
Shahrzad Peyman
 
PDF
Web Design & Development - Session 8
Shahrzad Peyman
 
PDF
Web Design & Development - Session 6
Shahrzad Peyman
 
PDF
Web Design & Development - Session 4
Shahrzad Peyman
 
PDF
Web Design & Development - Session 3
Shahrzad Peyman
 
PDF
Web Design & Development - Session 2
Shahrzad Peyman
 
PDF
Web Design & Development - Session 1
Shahrzad Peyman
 
PDF
Object Oriented Programming with Laravel - Session 6
Shahrzad Peyman
 
PDF
Object Oriented Programming with Laravel - Session 5
Shahrzad Peyman
 
PDF
Object Oriented Programming with Laravel - Session 4
Shahrzad Peyman
 
PDF
Object Oriented Programming with Laravel - Session 3
Shahrzad Peyman
 
PDF
Object Oriented Programming with Laravel - Session 2
Shahrzad Peyman
 
Web Design & Development - Session 9
Shahrzad Peyman
 
Web Design & Development - Session 8
Shahrzad Peyman
 
Web Design & Development - Session 6
Shahrzad Peyman
 
Web Design & Development - Session 4
Shahrzad Peyman
 
Web Design & Development - Session 3
Shahrzad Peyman
 
Web Design & Development - Session 2
Shahrzad Peyman
 
Web Design & Development - Session 1
Shahrzad Peyman
 
Object Oriented Programming with Laravel - Session 6
Shahrzad Peyman
 
Object Oriented Programming with Laravel - Session 5
Shahrzad Peyman
 
Object Oriented Programming with Laravel - Session 4
Shahrzad Peyman
 
Object Oriented Programming with Laravel - Session 3
Shahrzad Peyman
 
Object Oriented Programming with Laravel - Session 2
Shahrzad Peyman
 
Ad

Recently uploaded (20)

PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PDF
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
PPTX
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PPTX
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PDF
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 

Object Oriented Programming with Laravel - Session 1

  • 2. Today’s Presentation ▪ What is PHP? ▪ Object Oriented Programming ▪ Introduction to PHP Syntax ▪ Composer ▪ Framework ▪ MVC ▪ Laravel 2
  • 3. What is PHP? ▪ PHP is a popular, general-purpose and server-side scripting language that is especially suited to web development. ▪ Commonly used to build web applications. ▪ PHP: Personal Home Page --- Php Hypertext Preprocessor ▪ PHP (Hypertext Preprocessor) was created by Rasmus Lerdorf in 1994. It is now developed and improved by a large team of people. ▪ http://www.php.net 3
  • 4. PHP History PHP2 1995 Added database support, file uploads, variables, arrays, recursive functions, conditionals, iterations, regular expression and etc. PHP3 1998 Added support of ODBC data sources, multiple platform support, email protocol, and new parser written by Zeev Suraski and Andi Gutmans. PHP4 2000 The parser was renamed the Zend Engine. Many security features were added. PHP5 2004 Adds Zend Engine 2 with object oriented programming, robust XML support, SOAP extension for interoperability with Web Services, SQLLite has been bundled with PHP. PHP7 2015 Revolution in PHP 4
  • 5. Scripting Language ▪ A scripting language is a programming language that employs a high-level construct to interpret and execute one command at a time. ▪ Interpreted at runtime 5
  • 6. Who Uses PHP? ▪ Yahoo! ▪ Facebook (HACK) ▪ Wikipedia ▪ 20+ million other domain names 6
  • 7. Which Tools Based on PHP? ▪ Wordpress (Blog engine) ▪ Drupal (CMS) ▪ Slack (Chat Service) ▪ Joomla (CMS) ➢As of January 2013, PHP was used in more than 240 million websites (39% of those sampled) and was installed on 2.1 million web servers. 7
  • 8. Why I Choose PHP? ▪ Cost nothing, it is free to download and use. ▪ Open source ▪ Runs on different platforms ▪ Codes and solutions are easily available ▪ Lots and lots of knowledge and documentation ▪ Speed of development 8
  • 10. Object-Oriented Programming What is Object-Oriented Programming (OOP)? Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects". So, Objects are key to understanding object-oriented technology. 10
  • 11. What is Object? ❖Many examples of real-world objects ▪ your Book, your PC, your Mobile, your Computer mouse and so on. ❖Real-world objects share two characteristics: ▪ State ▪ Behavior ❖Software Objects ▪ Modeled after real-world objects. ▪ Maintains its states in variables or attributes. ▪ Implements its behaviors with methods. 11
  • 12. Objects ▪ E.g. A Computer Mouse is a real-world Object. Its states would be its color, size and brand name and its behaviors would be left- click, right-click and middle click. ▪ Software object that modeled your real-world computer mouse. ▪ Have variables(attributes) that indicated the computer mouse’s current states: ▪ Its color is black. ▪ Its size is medium. ▪ Its brand name is Genius. ▪ Have methods that indicated the computer mouse’s current behaviors like left-click, right-click and middle click. 12
  • 13. What is Class? ▪ A class is a prototype that defines the variables and the methods common to all objects of a certain kind. ▪ A class is an entity that helps the programmer to define a new complex data type. ➢An object is an instance of a class. ➢A class defines the data and behavior of objects. ➢E.g. Apple, Orange and banana are members of the fruit class. 13
  • 14. Introduction to PHP Syntax ▪ PHP has quality easy syntax. If you are familiar with any c-type language ▪ It has all the same structures that you are familiar with other programming languages ▪ PHP is designed to output to browser, but it is possible to do also CLI apps 14
  • 15. Variables ▪ Variables in PHP are represented by a dollar sign ($). ▪ PHP supports nine main types: ▪ boolean ▪ integer ▪ float ▪ double ▪ string ▪ array ▪ object ▪ resource ▪ NULL ▪ Case-sensitivity ▪ Start with letter or _ ▪ After that you can have numbers, letters and _ 15
  • 16. Booleans ▪ Simple Type ▪ A boolean expresses a truth value. It can be either TRUE or False (case-insensitive). 16
  • 17. Integers ▪ An integer is a number of the Set Z = { … , -2 , -1 , 0 , 1 , 2 , … } ▪ Integers can be specified in decimal (base 10), hexadecimal (base 16), octal (base 8) or binary (base 2) notation, optionally preceded by a sign ( - or + ). 17
  • 18. Array ▪ An array in PHP is actually an ordered map. A map is a type that associates values to keys. ▪ This type is optimized for several different uses: ▪ Array ▪ List (vector) ▪ Hash table ▪ Dictionary ▪ Collection ▪ Stack ▪ Queue ▪ … 18
  • 19. NULL ▪ The special Null value represents a variable with no value. ▪ NULL is the only possible value of type null. ▪ A variable is considered to be null if: ▪ It has been assigned the constant NULL. ▪ It has not been set to any value yet. ▪ It has been unset() 19
  • 20. Functions ▪ A function may be defined using syntax such as the following: ▪ Any valid PHP code may appear inside a function, even other functions. 20
  • 21. Class in PHP ▪ Basic class definitions begin with the keyword class, followed by a class name ▪ Then, followed by a pair of curly braces which enclose the definitions of the properties and methods belonging to the class. 21
  • 22. Object in PHP ▪ Instance of class 22
  • 23. Namespace ▪ Provide a way in which to group related classes, functions, constants and others. ▪ An abstract concept in many places. ▪ In PHP world, namespaces are designed to solve two problems: ▪ Name collisions between code you create ▪ Improving readability of source code (Ability to alias) 23
  • 24. Composer ▪ Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. ▪ Use: ▪ Install Composer ▪ In root of your project, Create a text file (JSON File) – composer.json ▪ Require all libraries you want to use it ▪ Composer install 24
  • 25. What is Framework? ▪ An application framework is a software library that provides a fundamental structure to support the development of applications for a specific environment. ▪ In computer systems, a framework is often a layered structure indicating what kind of programs can or should be built and how they would interrelate. ▪ A PHP Framework is a basic platform that allows us to develop web applications. In other words, it provides structure. By using a PHP Framework, you will end up saving loads of time, stopping the need to produce repetitive code, and you'll be able to build applications rapidly (RAD). 25
  • 26. MVC: Model-View-Controller ▪ Model–View–Controller (MVC) is a software design pattern for implementing user interfaces on computers. ▪ It divides a given application into three interconnected parts in order to separate internal representations of information from the ways that information is presented to and accepted from the user. ▪ Popular programming languages like Java, C#, Ruby, PHP and others have popular MVC frameworks. 26
  • 27. Laravel ▪ Laravel is a free, open-source PHP web framework created by Taylor Otwell. ▪ Intended for the development of web applications following the model–view–controller (MVC) architectural pattern. ➢As of March 2015, Laravel is regarded as one of the most popular PHP frameworks, together with Symfony2, Nette, CodeIgniter, Yii2 and other frameworks. 27
  • 28. Laravel Requirements: ▪ The Laravel framework has a few system requirements: ▪ PHP >= 5.6.4 ▪ OpenSSL PHP Extension ▪ PDO PHP Extension ▪ Mbstring PHP Extension ▪ Tokenizer PHP Extension ▪ XML PHP Extension Laravel utilizes Composer to manage its dependencies. So, before using Laravel, make sure you have Composer installed on your machine. 28
  • 29. Install Laravel ▪ First, download the Laravel installer using Composer: ▪ composer global require "laravel/installer“ ▪ laravel new blog 29