SlideShare a Scribd company logo
Zend Framework
...without inhaling
    Dallas TechFest 2010

       Jeremy Brown
About Me
Zend Certified Engineer

Coding PHP since 1999 (PHP 3)

Using Zend Framework since 2008 (ver. 1.0.4)

All-around cool guy
About Me
Zend Certified Engineer

Coding PHP since 1999 (PHP 3)

Using Zend Framework since 2008 (ver. 1.0.4)

All-around cool guy




                      image source: http://i78.photobucket.com/albums/j86/Goku1983d/cover-fonz.jpg
Contact Me
Blog: http://www.notmessenger.com

Twitter: @notmessenger

Email: jeremy@notmessenger.com

IRC: #zftalk #dallasphp (irc.freenode.net)
Contact Me
Blog: http://www.notmessenger.com

Twitter: @notmessenger

Email: jeremy@notmessenger.com

IRC: #zftalk #dallasphp (irc.freenode.net)




                image source: http://i71.photobucket.com/albums/i159/tekkaus/Tekkaus-msn-chatsleep.jpg
About This Presentation
 Slides, code examples and video recording at
 notmessenger.com/presentations

 Provide feedback via Joind.in at
 http://joind.in/talk/view/1782
About You
About You
How many of you have played with
or used Zend Framework before?
About You
How many of you have played with
or used Zend Framework before?

How many of you have heard of Zend
Framework before?
About You
How many of you have played with
or used Zend Framework before?

How many of you have heard of Zend
Framework before?

How many of you realize you’re in the wrong
session?




                       image source: http://www.mind-body-science.com/images/frantic.jpg
Absolute easiest way
Absolute easiest way



         image source: http://www.quantum360.co.uk/Portals/0/images/easy%20image.jpg
Use-at-will architecture
 Loosely-coupled components

 Minimal interdependencies
image source: http://www.pulpinternational.com/images/postimg/intermission%2002.jpg
image source: http://oneparticularwave.files.wordpress.com/2006/09/color_bars.jpg
Recap
Can easily use a Zend_? module as needed

Simply add Zend Framework to include path

Zend_Loader_Autoloader does all the work
for you
Recap
Can easily use a Zend_? module as needed

Simply add Zend Framework to include path

Zend_Loader_Autoloader does all the work
for you




                  image source: http://www.quantum360.co.uk/Portals/0/images/easy%20image.jpg
Add new functionality
 to existing codebase



          image source: http://aimeegd.files.wordpress.com/2009/04/bricks2.jpg
How does it play with
existing auto loaders?
How does it play with
existing auto loaders?
Nicely!
How does it play with
existing auto loaders?
Nicely!

That’s it. Better than ‘horribly’, right?
image source: http://www.pulpinternational.com/images/postimg/intermission%2002.jpg
image source: http://oneparticularwave.files.wordpress.com/2006/09/color_bars.jpg
Recap
Can continue to use own autoloader.

Zend Framework’s autoloader can also be
used.

Result? Can easily add new functionality
implementing Zend Framework code into
existing codebase.
Recap
Can continue to use own autoloader.

Zend Framework’s autoloader can also be
used.

Result? Can easily add new functionality
implementing Zend Framework code into
existing codebase.




                  image source: http://www.quantum360.co.uk/Portals/0/images/easy%20image.jpg
Planning Ahead




       image source: http://www.gapingvoid.com/we%20had%20a%20plan.jpg
Separation of concerns
 Previous examples had none or very little

 Model, View, Controller (MVC)

 Models == data and/or business logic

 In Zend Framework, Models are implemented
 as objects
image source: http://www.pulpinternational.com/images/postimg/intermission%2002.jpg
image source: http://oneparticularwave.files.wordpress.com/2006/09/color_bars.jpg
Recap
Write all new functionality as objects - you
will need them in Zend Framework

A large part of the “M” in “MVC” (Model)
already coded - less work later

Easy to later separate the “VC” parts of
“MVC” (View-Controller)
Recap
Write all new functionality as objects - you
will need them in Zend Framework

A large part of the “M” in “MVC” (Model)
already coded - less work later

Easy to later separate the “VC” parts of
“MVC” (View-Controller)




                   image source: http://www.quantum360.co.uk/Portals/0/images/easy%20image.jpg
Migrate existing site
Migrate existing site




          image source: http://farm1.static.flickr.com/100/308786610_f147876c71_o.jpg
Never stop developing
Apache mod_rewrite rules (and IIS
equivalents)

  All requests get routed to/through the
  Front Controller

  Leverage this to convert specific pages or
  sections at a time
image source: http://www.pulpinternational.com/images/postimg/intermission%2002.jpg
image source: http://oneparticularwave.files.wordpress.com/2006/09/color_bars.jpg
Recap
Rewrite rules make it very easy to convert
existing sites to Zend Framework

Existing pages or sections can be migrated at
own pace

Old and new code can be maintained
simultaneously
Recap
Rewrite rules make it very easy to convert
existing sites to Zend Framework

Existing pages or sections can be migrated at
own pace

Old and new code can be maintained
simultaneously

       Now that was easy!
                   image source: http://www.quantum360.co.uk/Portals/0/images/easy%20image.jpg
Thank you
Slides, code examples and video recording at
notmessenger.com/presentations

Provide feedback via Joind.in at
http://joind.in/talk/view/1782

More Related Content

Viewers also liked

Jason McKersie Summer 2010 Net Worth
Jason McKersie Summer 2010 Net WorthJason McKersie Summer 2010 Net Worth
Jason McKersie Summer 2010 Net Worth
jmckersie
 
De nieuwe energieprestatienorm EPG
De nieuwe energieprestatienorm EPGDe nieuwe energieprestatienorm EPG
De nieuwe energieprestatienorm EPG
Netherlands Enterprise Agency (RVO.nl)
 
Impozitarea marilor averi- sondaj
Impozitarea marilor averi- sondajImpozitarea marilor averi- sondaj
Impozitarea marilor averi- sondaj
inpoliticsro
 
Introduction To It
Introduction To ItIntroduction To It
Introduction To It
Konevo311
 
Weblogic as a windows service
Weblogic as a windows serviceWeblogic as a windows service
Weblogic as a windows service
Ravi Kumar Lanke
 
Session2 part2
Session2 part2Session2 part2
Session2 part2
maovkh
 
Ho so cong tac cua giao vien dai hoc.
Ho so cong tac cua giao vien dai hoc.Ho so cong tac cua giao vien dai hoc.
Ho so cong tac cua giao vien dai hoc.
University of Sport
 
Как бизнесу эффективно продвигаться в условиях кризиса.
Как бизнесу эффективно продвигаться в условиях кризиса. Как бизнесу эффективно продвигаться в условиях кризиса.
Как бизнесу эффективно продвигаться в условиях кризиса.
Fert
 
Trip of a Lifetime
Trip of a LifetimeTrip of a Lifetime
Trip of a Lifetime
Trip of a Lifetime
 
National plan Towards nearly zero-energy buildings in The Netherlands
National plan Towards nearly zero-energy buildings in The NetherlandsNational plan Towards nearly zero-energy buildings in The Netherlands
National plan Towards nearly zero-energy buildings in The Netherlands
Netherlands Enterprise Agency (RVO.nl)
 
デブサミ2014 オフィシャルコミュニティ募集要項
デブサミ2014 オフィシャルコミュニティ募集要項デブサミ2014 オフィシャルコミュニティ募集要項
デブサミ2014 オフィシャルコミュニティ募集要項
Developers Summit
 
Investeren in duurzame energietechnieken
Investeren in duurzame energietechniekenInvesteren in duurzame energietechnieken
Investeren in duurzame energietechnieken
Netherlands Enterprise Agency (RVO.nl)
 
Ontwikkelingen in facility management en de consequenties voor duurzaamheid
Ontwikkelingen in facility management en de consequenties voor duurzaamheidOntwikkelingen in facility management en de consequenties voor duurzaamheid
Ontwikkelingen in facility management en de consequenties voor duurzaamheid
Netherlands Enterprise Agency (RVO.nl)
 
Meest duurzame verbouwde gemeentehuis van nederland in oss
Meest duurzame verbouwde gemeentehuis van nederland in ossMeest duurzame verbouwde gemeentehuis van nederland in oss
Meest duurzame verbouwde gemeentehuis van nederland in oss
Netherlands Enterprise Agency (RVO.nl)
 
Twitter 101 Arabic عالم التويتر
Twitter 101 Arabic عالم التويتر Twitter 101 Arabic عالم التويتر
Twitter 101 Arabic عالم التويتر
DigiArabs
 
Chris caroe df e presentation governorlive 25062013
Chris caroe df e presentation governorlive 25062013Chris caroe df e presentation governorlive 25062013
Chris caroe df e presentation governorlive 25062013
Elaine Walton
 
Trimax
TrimaxTrimax

Viewers also liked (19)

Jason McKersie Summer 2010 Net Worth
Jason McKersie Summer 2010 Net WorthJason McKersie Summer 2010 Net Worth
Jason McKersie Summer 2010 Net Worth
 
De nieuwe energieprestatienorm EPG
De nieuwe energieprestatienorm EPGDe nieuwe energieprestatienorm EPG
De nieuwe energieprestatienorm EPG
 
Impozitarea marilor averi- sondaj
Impozitarea marilor averi- sondajImpozitarea marilor averi- sondaj
Impozitarea marilor averi- sondaj
 
Introduction To It
Introduction To ItIntroduction To It
Introduction To It
 
Weblogic as a windows service
Weblogic as a windows serviceWeblogic as a windows service
Weblogic as a windows service
 
Session2 part2
Session2 part2Session2 part2
Session2 part2
 
Ho so cong tac cua giao vien dai hoc.
Ho so cong tac cua giao vien dai hoc.Ho so cong tac cua giao vien dai hoc.
Ho so cong tac cua giao vien dai hoc.
 
Как бизнесу эффективно продвигаться в условиях кризиса.
Как бизнесу эффективно продвигаться в условиях кризиса. Как бизнесу эффективно продвигаться в условиях кризиса.
Как бизнесу эффективно продвигаться в условиях кризиса.
 
Trip of a Lifetime
Trip of a LifetimeTrip of a Lifetime
Trip of a Lifetime
 
Gtsat
GtsatGtsat
Gtsat
 
National plan Towards nearly zero-energy buildings in The Netherlands
National plan Towards nearly zero-energy buildings in The NetherlandsNational plan Towards nearly zero-energy buildings in The Netherlands
National plan Towards nearly zero-energy buildings in The Netherlands
 
デブサミ2014 オフィシャルコミュニティ募集要項
デブサミ2014 オフィシャルコミュニティ募集要項デブサミ2014 オフィシャルコミュニティ募集要項
デブサミ2014 オフィシャルコミュニティ募集要項
 
Investeren in duurzame energietechnieken
Investeren in duurzame energietechniekenInvesteren in duurzame energietechnieken
Investeren in duurzame energietechnieken
 
Ontwikkelingen in facility management en de consequenties voor duurzaamheid
Ontwikkelingen in facility management en de consequenties voor duurzaamheidOntwikkelingen in facility management en de consequenties voor duurzaamheid
Ontwikkelingen in facility management en de consequenties voor duurzaamheid
 
Meest duurzame verbouwde gemeentehuis van nederland in oss
Meest duurzame verbouwde gemeentehuis van nederland in ossMeest duurzame verbouwde gemeentehuis van nederland in oss
Meest duurzame verbouwde gemeentehuis van nederland in oss
 
Twitter 101 Arabic عالم التويتر
Twitter 101 Arabic عالم التويتر Twitter 101 Arabic عالم التويتر
Twitter 101 Arabic عالم التويتر
 
Horizon
HorizonHorizon
Horizon
 
Chris caroe df e presentation governorlive 25062013
Chris caroe df e presentation governorlive 25062013Chris caroe df e presentation governorlive 25062013
Chris caroe df e presentation governorlive 25062013
 
Trimax
TrimaxTrimax
Trimax
 

Recently uploaded

Using LLM Agents with Llama 3, LangGraph and Milvus
Using LLM Agents with Llama 3, LangGraph and MilvusUsing LLM Agents with Llama 3, LangGraph and Milvus
Using LLM Agents with Llama 3, LangGraph and Milvus
Zilliz
 
(CISOPlatform Summit & SACON 2024) Cyber Insurance & Risk Quantification.pdf
(CISOPlatform Summit & SACON 2024) Cyber Insurance & Risk Quantification.pdf(CISOPlatform Summit & SACON 2024) Cyber Insurance & Risk Quantification.pdf
(CISOPlatform Summit & SACON 2024) Cyber Insurance & Risk Quantification.pdf
Priyanka Aash
 
Uncharted Together- Navigating AI's New Frontiers in Libraries
Uncharted Together- Navigating AI's New Frontiers in LibrariesUncharted Together- Navigating AI's New Frontiers in Libraries
Uncharted Together- Navigating AI's New Frontiers in Libraries
Brian Pichman
 
Dublin_mulesoft_meetup_Mulesoft_Salesforce_Integration (1).pptx
Dublin_mulesoft_meetup_Mulesoft_Salesforce_Integration (1).pptxDublin_mulesoft_meetup_Mulesoft_Salesforce_Integration (1).pptx
Dublin_mulesoft_meetup_Mulesoft_Salesforce_Integration (1).pptx
Kunal Gupta
 
High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...
High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...
High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...
bhumivarma35300
 
The Impact of the Internet of Things (IoT) on Smart Homes and Cities
The Impact of the Internet of Things (IoT) on Smart Homes and CitiesThe Impact of the Internet of Things (IoT) on Smart Homes and Cities
The Impact of the Internet of Things (IoT) on Smart Homes and Cities
Arpan Buwa
 
Opencast Summit 2024 — Opencast @ University of Münster
Opencast Summit 2024 — Opencast @ University of MünsterOpencast Summit 2024 — Opencast @ University of Münster
Opencast Summit 2024 — Opencast @ University of Münster
Matthias Neugebauer
 
Step-By-Step Process to Develop a Mobile App From Scratch
Step-By-Step Process to Develop a Mobile App From ScratchStep-By-Step Process to Develop a Mobile App From Scratch
Step-By-Step Process to Develop a Mobile App From Scratch
softsuave
 
Types of Weaving loom machine & it's technology
Types of Weaving loom machine & it's technologyTypes of Weaving loom machine & it's technology
Types of Weaving loom machine & it's technology
ldtexsolbl
 
leewayhertz.com-Generative AI tech stack Frameworks infrastructure models and...
leewayhertz.com-Generative AI tech stack Frameworks infrastructure models and...leewayhertz.com-Generative AI tech stack Frameworks infrastructure models and...
leewayhertz.com-Generative AI tech stack Frameworks infrastructure models and...
alexjohnson7307
 
Zaitechno Handheld Raman Spectrometer.pdf
Zaitechno Handheld Raman Spectrometer.pdfZaitechno Handheld Raman Spectrometer.pdf
Zaitechno Handheld Raman Spectrometer.pdf
AmandaCheung15
 
Acumatica vs. Sage Intacct _Construction_July (1).pptx
Acumatica vs. Sage Intacct _Construction_July (1).pptxAcumatica vs. Sage Intacct _Construction_July (1).pptx
Acumatica vs. Sage Intacct _Construction_July (1).pptx
BrainSell Technologies
 
Feature sql server terbaru performance.pptx
Feature sql server terbaru performance.pptxFeature sql server terbaru performance.pptx
Feature sql server terbaru performance.pptx
ssuser1915fe1
 
IPLOOK Remote-Sensing Satellite Solution
IPLOOK Remote-Sensing Satellite SolutionIPLOOK Remote-Sensing Satellite Solution
IPLOOK Remote-Sensing Satellite Solution
IPLOOK Networks
 
(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...
(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...
(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...
Priyanka Aash
 
MAKE MONEY ONLINE Unlock Your Income Potential Today.pptx
MAKE MONEY ONLINE Unlock Your Income Potential Today.pptxMAKE MONEY ONLINE Unlock Your Income Potential Today.pptx
MAKE MONEY ONLINE Unlock Your Income Potential Today.pptx
janagijoythi
 
(CISOPlatform Summit & SACON 2024) Orientation by CISO Platform_ Using CISO P...
(CISOPlatform Summit & SACON 2024) Orientation by CISO Platform_ Using CISO P...(CISOPlatform Summit & SACON 2024) Orientation by CISO Platform_ Using CISO P...
(CISOPlatform Summit & SACON 2024) Orientation by CISO Platform_ Using CISO P...
Priyanka Aash
 
The Role of IoT in Australian Mobile App Development - PDF Guide
The Role of IoT in Australian Mobile App Development - PDF GuideThe Role of IoT in Australian Mobile App Development - PDF Guide
The Role of IoT in Australian Mobile App Development - PDF Guide
Shiv Technolabs
 
Semantic-Aware Code Model: Elevating the Future of Software Development
Semantic-Aware Code Model: Elevating the Future of Software DevelopmentSemantic-Aware Code Model: Elevating the Future of Software Development
Semantic-Aware Code Model: Elevating the Future of Software Development
Baishakhi Ray
 
Use Cases & Benefits of RPA in Manufacturing in 2024.pptx
Use Cases & Benefits of RPA in Manufacturing in 2024.pptxUse Cases & Benefits of RPA in Manufacturing in 2024.pptx
Use Cases & Benefits of RPA in Manufacturing in 2024.pptx
SynapseIndia
 

Recently uploaded (20)

Using LLM Agents with Llama 3, LangGraph and Milvus
Using LLM Agents with Llama 3, LangGraph and MilvusUsing LLM Agents with Llama 3, LangGraph and Milvus
Using LLM Agents with Llama 3, LangGraph and Milvus
 
(CISOPlatform Summit & SACON 2024) Cyber Insurance & Risk Quantification.pdf
(CISOPlatform Summit & SACON 2024) Cyber Insurance & Risk Quantification.pdf(CISOPlatform Summit & SACON 2024) Cyber Insurance & Risk Quantification.pdf
(CISOPlatform Summit & SACON 2024) Cyber Insurance & Risk Quantification.pdf
 
Uncharted Together- Navigating AI's New Frontiers in Libraries
Uncharted Together- Navigating AI's New Frontiers in LibrariesUncharted Together- Navigating AI's New Frontiers in Libraries
Uncharted Together- Navigating AI's New Frontiers in Libraries
 
Dublin_mulesoft_meetup_Mulesoft_Salesforce_Integration (1).pptx
Dublin_mulesoft_meetup_Mulesoft_Salesforce_Integration (1).pptxDublin_mulesoft_meetup_Mulesoft_Salesforce_Integration (1).pptx
Dublin_mulesoft_meetup_Mulesoft_Salesforce_Integration (1).pptx
 
High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...
High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...
High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...
 
The Impact of the Internet of Things (IoT) on Smart Homes and Cities
The Impact of the Internet of Things (IoT) on Smart Homes and CitiesThe Impact of the Internet of Things (IoT) on Smart Homes and Cities
The Impact of the Internet of Things (IoT) on Smart Homes and Cities
 
Opencast Summit 2024 — Opencast @ University of Münster
Opencast Summit 2024 — Opencast @ University of MünsterOpencast Summit 2024 — Opencast @ University of Münster
Opencast Summit 2024 — Opencast @ University of Münster
 
Step-By-Step Process to Develop a Mobile App From Scratch
Step-By-Step Process to Develop a Mobile App From ScratchStep-By-Step Process to Develop a Mobile App From Scratch
Step-By-Step Process to Develop a Mobile App From Scratch
 
Types of Weaving loom machine & it's technology
Types of Weaving loom machine & it's technologyTypes of Weaving loom machine & it's technology
Types of Weaving loom machine & it's technology
 
leewayhertz.com-Generative AI tech stack Frameworks infrastructure models and...
leewayhertz.com-Generative AI tech stack Frameworks infrastructure models and...leewayhertz.com-Generative AI tech stack Frameworks infrastructure models and...
leewayhertz.com-Generative AI tech stack Frameworks infrastructure models and...
 
Zaitechno Handheld Raman Spectrometer.pdf
Zaitechno Handheld Raman Spectrometer.pdfZaitechno Handheld Raman Spectrometer.pdf
Zaitechno Handheld Raman Spectrometer.pdf
 
Acumatica vs. Sage Intacct _Construction_July (1).pptx
Acumatica vs. Sage Intacct _Construction_July (1).pptxAcumatica vs. Sage Intacct _Construction_July (1).pptx
Acumatica vs. Sage Intacct _Construction_July (1).pptx
 
Feature sql server terbaru performance.pptx
Feature sql server terbaru performance.pptxFeature sql server terbaru performance.pptx
Feature sql server terbaru performance.pptx
 
IPLOOK Remote-Sensing Satellite Solution
IPLOOK Remote-Sensing Satellite SolutionIPLOOK Remote-Sensing Satellite Solution
IPLOOK Remote-Sensing Satellite Solution
 
(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...
(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...
(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...
 
MAKE MONEY ONLINE Unlock Your Income Potential Today.pptx
MAKE MONEY ONLINE Unlock Your Income Potential Today.pptxMAKE MONEY ONLINE Unlock Your Income Potential Today.pptx
MAKE MONEY ONLINE Unlock Your Income Potential Today.pptx
 
(CISOPlatform Summit & SACON 2024) Orientation by CISO Platform_ Using CISO P...
(CISOPlatform Summit & SACON 2024) Orientation by CISO Platform_ Using CISO P...(CISOPlatform Summit & SACON 2024) Orientation by CISO Platform_ Using CISO P...
(CISOPlatform Summit & SACON 2024) Orientation by CISO Platform_ Using CISO P...
 
The Role of IoT in Australian Mobile App Development - PDF Guide
The Role of IoT in Australian Mobile App Development - PDF GuideThe Role of IoT in Australian Mobile App Development - PDF Guide
The Role of IoT in Australian Mobile App Development - PDF Guide
 
Semantic-Aware Code Model: Elevating the Future of Software Development
Semantic-Aware Code Model: Elevating the Future of Software DevelopmentSemantic-Aware Code Model: Elevating the Future of Software Development
Semantic-Aware Code Model: Elevating the Future of Software Development
 
Use Cases & Benefits of RPA in Manufacturing in 2024.pptx
Use Cases & Benefits of RPA in Manufacturing in 2024.pptxUse Cases & Benefits of RPA in Manufacturing in 2024.pptx
Use Cases & Benefits of RPA in Manufacturing in 2024.pptx
 

Zend Framework...without inhaling

Editor's Notes

  1. Load http://dtf1.jeremy.local -> Currency conversion
  2. A lot of home-grown systems (those not using a framework) have their own autoloaders they are using.
  3. Load http://dtf2.jeremy.local
  4. Building models
  5. Very good thing. MVC is an implementation of it.
  6. Load http://dtf3.jeremy.local
  7. 2nd bullet caveat - on a per-functionality basis (such as “Comments” in this presentation’s example)
  8. 2nd bullet caveat - on a per-functionality basis (such as “Comments” in this presentation’s example)
  9. Jumping feet first
  10. Load http://dtf3.jeremy.local