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)

PPT
Oops concepts in php
CPD INDIA
 
PPTX
What-is-Laravel-23-August-2017.pptx
AbhijeetKumar456867
 
PPT
Asp.net architecture
Iblesoft
 
PDF
Laravel presentation
Toufiq Mahmud
 
PDF
Why Laravel?
Jonathan Goode
 
PPTX
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Dilouar Hossain
 
PPTX
jQuery
Dileep Mishra
 
PPT
jQuery Ajax
Anand Kumar Rajana
 
PPTX
Introduction to mvc architecture
ravindraquicsolv
 
PPTX
Introduction to php
shanmukhareddy dasi
 
PPTX
Laravel Tutorial PPT
Piyush Aggarwal
 
PPTX
Ajax ppt - 32 slides
Smithss25
 
PPSX
ASP.NET Web form
Md. Mahedee Hasan
 
PPT
PHP - Introduction to Object Oriented Programming with PHP
Vibrant Technologies & Computers
 
PPT
MVC ppt presentation
Bhavin Shah
 
PPTX
Web forms in ASP.net
Madhuri Kavade
 
PPTX
Selenium
mdfkhan625
 
PPT
Web server
Sajan Sahu
 
PPTX
Java Spring Framework
Mehul Jariwala
 
PDF
The Django Web Application Framework
Simon Willison
 
Oops concepts in php
CPD INDIA
 
What-is-Laravel-23-August-2017.pptx
AbhijeetKumar456867
 
Asp.net architecture
Iblesoft
 
Laravel presentation
Toufiq Mahmud
 
Why Laravel?
Jonathan Goode
 
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Dilouar Hossain
 
jQuery Ajax
Anand Kumar Rajana
 
Introduction to mvc architecture
ravindraquicsolv
 
Introduction to php
shanmukhareddy dasi
 
Laravel Tutorial PPT
Piyush Aggarwal
 
Ajax ppt - 32 slides
Smithss25
 
ASP.NET Web form
Md. Mahedee Hasan
 
PHP - Introduction to Object Oriented Programming with PHP
Vibrant Technologies & Computers
 
MVC ppt presentation
Bhavin Shah
 
Web forms in ASP.net
Madhuri Kavade
 
Selenium
mdfkhan625
 
Web server
Sajan Sahu
 
Java Spring Framework
Mehul Jariwala
 
The Django Web Application Framework
Simon Willison
 

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

PPT
Programming paradigm and web programming
Mohammad Kamrul Hasan
 
PPTX
Learn PHP Lacture1
ADARSH BHATT
 
PDF
Top 8 Powerful Tools Developers Use for Laravel Web Development.pdf
MoonTechnolabsPvtLtd
 
PDF
chapter 5 Server-Side Scripting (PHP).pdf
burasyacob012
 
PPTX
Oop lecture1-chapter1(review of java)
Dastan Kamaran
 
PPTX
Oop lecture1-chapter1(review of java)
Dastan Kamaran
 
PPT
Introduction to PHP - SDPHP
Eric Johnson
 
PPTX
PHP TRAINING
gurjinderbains
 
PPTX
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
PDF
Exploring PHP's Built-in Functions
Emma Thompson
 
PPTX
Programming language
MalayKalavadia
 
PDF
Node.js vs PHP, What should SMBs prefer for web development.pdf
Mindfire LLC
 
PDF
Essential Guide To Php For All Levels O Adeolu
glouxrashiq71
 
PDF
Intro to programming and intro to java netbean.pdf
ErwinButchNicolas1
 
PPTX
Web programming using PHP and Introduction with sample codes
DivyaKS12
 
PPTX
Top 10 php frameworks in 2021
MaryamAnwar10
 
PDF
PHP Jump Start
Haim Michael
 
PDF
Laravel level 0 (introduction)
Kriangkrai Chaonithi
 
PDF
DOT NET TRaining
sunil kumar
 
PDF
OOP Java
Saif Kassim
 
Programming paradigm and web programming
Mohammad Kamrul Hasan
 
Learn PHP Lacture1
ADARSH BHATT
 
Top 8 Powerful Tools Developers Use for Laravel Web Development.pdf
MoonTechnolabsPvtLtd
 
chapter 5 Server-Side Scripting (PHP).pdf
burasyacob012
 
Oop lecture1-chapter1(review of java)
Dastan Kamaran
 
Oop lecture1-chapter1(review of java)
Dastan Kamaran
 
Introduction to PHP - SDPHP
Eric Johnson
 
PHP TRAINING
gurjinderbains
 
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
 
Exploring PHP's Built-in Functions
Emma Thompson
 
Programming language
MalayKalavadia
 
Node.js vs PHP, What should SMBs prefer for web development.pdf
Mindfire LLC
 
Essential Guide To Php For All Levels O Adeolu
glouxrashiq71
 
Intro to programming and intro to java netbean.pdf
ErwinButchNicolas1
 
Web programming using PHP and Introduction with sample codes
DivyaKS12
 
Top 10 php frameworks in 2021
MaryamAnwar10
 
PHP Jump Start
Haim Michael
 
Laravel level 0 (introduction)
Kriangkrai Chaonithi
 
DOT NET TRaining
sunil kumar
 
OOP Java
Saif Kassim
 
Ad

More from Shahrzad Peyman (13)

PDF
Web Design & Development - Session 9
Shahrzad Peyman
 
PDF
Web Design & Development - Session 8
Shahrzad Peyman
 
PDF
Web Design & Development - Session 7
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 7
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)

PPTX
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PPTX
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
PPTX
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
PPTX
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
PPT
MergeSortfbsjbjsfk sdfik k
RafishaikIT02044
 
PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PPTX
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
PPTX
Perfecting XM Cloud for Multisite Setup.pptx
Ahmed Okour
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PDF
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PDF
Continouous failure - Why do we make our lives hard?
Papp Krisztián
 
PDF
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
PPTX
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 
PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
MergeSortfbsjbjsfk sdfik k
RafishaikIT02044
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
Perfecting XM Cloud for Multisite Setup.pptx
Ahmed Okour
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
Continouous failure - Why do we make our lives hard?
Papp Krisztián
 
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 

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