SlideShare une entreprise Scribd logo
1  sur  21
About the Author
●

My name is Oleg Krivtsov

●

I'm a C/C++ and PHP software developer

●

I received a PhD degree in Computer Science in 2010

●

I enjoy writing programming articles

●

Besides writing, I love skiing and watching Formula-1
Subject of the Book
●

●

The book is about programming web-sites with
Zend Framework 2
Zend Framework is a modern and popular PHP
web development framework:
●

professionally looking web-sites

●

scalable and secure web-sites

●

easy to test and maintain

●

utilizes the best practices and common design
patterns (Model-View-Controller, etc.)
Subject of the Book
●

Technologies:
●
●

HTML

●

CSS

●

●

Apache, PHP 5.3+, MySQL

JavaScript

Closely related libraries:
●

Twitter Bootstrap CSS Framework

●

jQuery

●

Doctrine ORM
Audience of the Book
●

●
●

This book is intended for beginner Zend
Framework 2 developers
Start with simple things
The first Zend Framework book that is easy to
read and understand for a newbie
Book Site

http://leanpub.com/using-zend-framework-2
About Leanpub

This book is available through Leanpub book
publishing service
●
●

●

Publish early, publish often
Obtain this book at a lower cost and give your
feedback to the author
Get the high-quality product
Get a Free Sample
●

Before buying the book, read a free sample

●

The sample contains the book chapters

●

Some parts of the chapter text are skipped
Structure of the Book
1.Introduction to Zend Framework 2
2.Zend Skeleton Application
3.Web Site Operation
4.Model-View-Controller
5.URL Routing
6.Page Appearance and Layout
7.Collecting User Input with Forms
8.Advanced Usage of Forms
Examples and Source Code
●
●

Book text is illustrated by code examples
Code is publicly available on GitHub
https://github.com/olegkrivtsov/using-zendframework-2-book
Chapters Overview
●

Chapter 1: Introduction to Zend Framework 2
●

What is a PHP framework?

●

ZF2 components

●

Differences between ZF1 and ZF2

●

ZF2 and competing frameworks
Chapters Overview
●

Chapter 2: Zend Skeleton Application
●

Configuring Apache/PHP/MySQL

●

How to create a new web site in ZF2

●

Downloading and installing the skeleton app

●

How to use Compozer

●

Apache Virtual Hosts

●

Creating NetBeans project
Chapters Overview
●

Chapter 3: Website Operation
●

What are PHP namespaces, interfaces and class
autoloading

●

The PSR-0 standard: what is it?

●

HTTP request and responce

●

Application life cycle and main events

●

Application configuration explained

●

Service manager
Chapters Overview
●

Chapter 4: Model-View-Controller
●

What are controllers, models and view templates?

●

Variable containers

●

Controller plugins and view helpers

●

Domain Driven Design (DDD) and available model
types
Chapters Overview
●

Chapter 5: URL Routing
●

Common URL structure

●

Simple route types (Literal, Segment, Regex, etc.)

●

Combining routes (SimpleRouteStack,
TreeRouteStack)

●

Routing configuration

●

Writing own route type
Chapters Overview
●

Chapter 6: Page Appearance and Layout
●

Twitter Bootstrap CSS Framework

●

Page layout in Zend Framework 2

●

Common view helpers

●

Writing own view helpers

●

Adding CSS and JavaScript to a web page

●

View models and page composition
Chapters Overview
●

Chapter 7: Collecting User Input with Forms
●

What is an HTML form?

●

Styling HTML Forms with Twitter Bootstrap

●

Forms and Model-View-Controller

●

Form Elements

●

Adding Form Validation Rules

●

Standard Form View Helpers
Purchase
●
●

●

Click the Buy Now button
Multiple payment options (PayPal, Visa,
MasterCard)
100% happiness guarantee
Get the Book with a Discount

Use the following Coupon:

DI$COUNT10
Contacts
●
●

●

E-mail: olegkrivtsov@gmail.com
Google+
https://plus.google.com/11176132034504213558
6
Follow my blog:
http://olegkrivtcov.wordpress.com/
Learn ZF2 with the
"Using Zend Framework 2" book!
http://leanpub.com/using-zend-framework-2

Contenu connexe

Tendances

Criando aplicações RestFul com Zend Framework 2
Criando aplicações RestFul com Zend Framework 2Criando aplicações RestFul com Zend Framework 2
Criando aplicações RestFul com Zend Framework 2Elton Minetto
 
Django Interview Questions and Answers
Django Interview Questions and AnswersDjango Interview Questions and Answers
Django Interview Questions and AnswersPython Devloper
 
PowerShell Plus v4.7 Overview
PowerShell Plus v4.7 OverviewPowerShell Plus v4.7 Overview
PowerShell Plus v4.7 OverviewRichard Giles
 
Intelligent Projects with Maven - DevFest Istanbul
Intelligent Projects with Maven - DevFest IstanbulIntelligent Projects with Maven - DevFest Istanbul
Intelligent Projects with Maven - DevFest IstanbulMert Çalışkan
 
Build your APIs with apigility
Build your APIs with apigilityBuild your APIs with apigility
Build your APIs with apigilityChristian Varela
 
BMO - Intelligent Projects with Maven
BMO - Intelligent Projects with MavenBMO - Intelligent Projects with Maven
BMO - Intelligent Projects with MavenMert Çalışkan
 
Magento and Continuous Integration - Damian Luszczymak
Magento and Continuous Integration - Damian LuszczymakMagento and Continuous Integration - Damian Luszczymak
Magento and Continuous Integration - Damian LuszczymakMeet Magento Spain
 
Building Rich Applications with Appcelerator
Building Rich Applications with AppceleratorBuilding Rich Applications with Appcelerator
Building Rich Applications with AppceleratorMatt Raible
 
Modules in Java? Finally! (OpenJDK 9 Jigsaw, JSR376)
Modules in Java? Finally! (OpenJDK 9 Jigsaw, JSR376)Modules in Java? Finally! (OpenJDK 9 Jigsaw, JSR376)
Modules in Java? Finally! (OpenJDK 9 Jigsaw, JSR376)Mihail Stoynov
 
"Different software evolutions from Start till Release in PHP product" Oleksa...
"Different software evolutions from Start till Release in PHP product" Oleksa..."Different software evolutions from Start till Release in PHP product" Oleksa...
"Different software evolutions from Start till Release in PHP product" Oleksa...Fwdays
 
EuroPython 2011 - How to build complex web applications having fun?
EuroPython 2011 - How to build complex web applications having fun?EuroPython 2011 - How to build complex web applications having fun?
EuroPython 2011 - How to build complex web applications having fun?Andrew Mleczko
 
Basic Java script handouts for students
Basic Java script handouts for students Basic Java script handouts for students
Basic Java script handouts for students shafiq sangi
 
An introduction to Java 9 & Its Features
An introduction to Java 9 & Its FeaturesAn introduction to Java 9 & Its Features
An introduction to Java 9 & Its FeaturesNexSoftsys
 
Lecture android best practices
Lecture   android best practicesLecture   android best practices
Lecture android best practiceseleksdev
 
Note - Apache Maven Intro
Note - Apache Maven IntroNote - Apache Maven Intro
Note - Apache Maven Introboyw165
 

Tendances (18)

Criando aplicações RestFul com Zend Framework 2
Criando aplicações RestFul com Zend Framework 2Criando aplicações RestFul com Zend Framework 2
Criando aplicações RestFul com Zend Framework 2
 
Django Interview Questions and Answers
Django Interview Questions and AnswersDjango Interview Questions and Answers
Django Interview Questions and Answers
 
Android develop guideline
Android develop guidelineAndroid develop guideline
Android develop guideline
 
PowerShell Plus v4.7 Overview
PowerShell Plus v4.7 OverviewPowerShell Plus v4.7 Overview
PowerShell Plus v4.7 Overview
 
Introduction to django
Introduction to djangoIntroduction to django
Introduction to django
 
Intelligent Projects with Maven - DevFest Istanbul
Intelligent Projects with Maven - DevFest IstanbulIntelligent Projects with Maven - DevFest Istanbul
Intelligent Projects with Maven - DevFest Istanbul
 
Build your APIs with apigility
Build your APIs with apigilityBuild your APIs with apigility
Build your APIs with apigility
 
BMO - Intelligent Projects with Maven
BMO - Intelligent Projects with MavenBMO - Intelligent Projects with Maven
BMO - Intelligent Projects with Maven
 
Magento and Continuous Integration - Damian Luszczymak
Magento and Continuous Integration - Damian LuszczymakMagento and Continuous Integration - Damian Luszczymak
Magento and Continuous Integration - Damian Luszczymak
 
Building Rich Applications with Appcelerator
Building Rich Applications with AppceleratorBuilding Rich Applications with Appcelerator
Building Rich Applications with Appcelerator
 
Modules in Java? Finally! (OpenJDK 9 Jigsaw, JSR376)
Modules in Java? Finally! (OpenJDK 9 Jigsaw, JSR376)Modules in Java? Finally! (OpenJDK 9 Jigsaw, JSR376)
Modules in Java? Finally! (OpenJDK 9 Jigsaw, JSR376)
 
"Different software evolutions from Start till Release in PHP product" Oleksa...
"Different software evolutions from Start till Release in PHP product" Oleksa..."Different software evolutions from Start till Release in PHP product" Oleksa...
"Different software evolutions from Start till Release in PHP product" Oleksa...
 
EuroPython 2011 - How to build complex web applications having fun?
EuroPython 2011 - How to build complex web applications having fun?EuroPython 2011 - How to build complex web applications having fun?
EuroPython 2011 - How to build complex web applications having fun?
 
Migrating from MFC to Qt
Migrating from MFC to QtMigrating from MFC to Qt
Migrating from MFC to Qt
 
Basic Java script handouts for students
Basic Java script handouts for students Basic Java script handouts for students
Basic Java script handouts for students
 
An introduction to Java 9 & Its Features
An introduction to Java 9 & Its FeaturesAn introduction to Java 9 & Its Features
An introduction to Java 9 & Its Features
 
Lecture android best practices
Lecture   android best practicesLecture   android best practices
Lecture android best practices
 
Note - Apache Maven Intro
Note - Apache Maven IntroNote - Apache Maven Intro
Note - Apache Maven Intro
 

Similaire à Using Zend Framework 2 Book Presentation

Joomla!Day Poland 2013 - Joomla Architecture (Ofer Cohen)
Joomla!Day Poland 2013 - Joomla Architecture  (Ofer Cohen)Joomla!Day Poland 2013 - Joomla Architecture  (Ofer Cohen)
Joomla!Day Poland 2013 - Joomla Architecture (Ofer Cohen)Ofer Cohen
 
Python web frameworks
Python web frameworksPython web frameworks
Python web frameworksNEWLUG
 
Jab12 - Joomla! architecture revealed
Jab12 - Joomla! architecture revealedJab12 - Joomla! architecture revealed
Jab12 - Joomla! architecture revealedOfer Cohen
 
Drupal training-1-in-mumbai
Drupal training-1-in-mumbaiDrupal training-1-in-mumbai
Drupal training-1-in-mumbaivibrantuser
 
Making sense of the front-end, for PHP developers
Making sense of the front-end, for PHP developersMaking sense of the front-end, for PHP developers
Making sense of the front-end, for PHP developersLewiz
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring FrameworkHùng Nguyễn Huy
 
Daniel Steigerwald: EsteJS - javascriptové aplikace robusně, modulárně a komf...
Daniel Steigerwald: EsteJS - javascriptové aplikace robusně, modulárně a komf...Daniel Steigerwald: EsteJS - javascriptové aplikace robusně, modulárně a komf...
Daniel Steigerwald: EsteJS - javascriptové aplikace robusně, modulárně a komf...Develcz
 
NodeJS - Server Side JS
NodeJS - Server Side JS NodeJS - Server Side JS
NodeJS - Server Side JS Ganesh Kondal
 
Decoupled drupal + vue.js
Decoupled drupal + vue.jsDecoupled drupal + vue.js
Decoupled drupal + vue.jsEugene Vozniuk
 
What's New in OpenLDAP
What's New in OpenLDAPWhat's New in OpenLDAP
What's New in OpenLDAPLDAPCon
 
Unit Test for ZF SlideShare Component
Unit Test for ZF SlideShare ComponentUnit Test for ZF SlideShare Component
Unit Test for ZF SlideShare ComponentDiego Delon
 
MongoDB Jump Start
MongoDB Jump StartMongoDB Jump Start
MongoDB Jump StartHaim Michael
 
JS digest. October 2017
JS digest. October 2017 JS digest. October 2017
JS digest. October 2017 ElifTech
 
Lately in php - 2019 May 4
Lately in php - 2019 May 4Lately in php - 2019 May 4
Lately in php - 2019 May 4Eric Poe
 
Plone Intranet under the hood
Plone Intranet under the hoodPlone Intranet under the hood
Plone Intranet under the hoodGuido Stevens
 

Similaire à Using Zend Framework 2 Book Presentation (20)

Joomla!Day Poland 2013 - Joomla Architecture (Ofer Cohen)
Joomla!Day Poland 2013 - Joomla Architecture  (Ofer Cohen)Joomla!Day Poland 2013 - Joomla Architecture  (Ofer Cohen)
Joomla!Day Poland 2013 - Joomla Architecture (Ofer Cohen)
 
Frameworks choice
Frameworks choiceFrameworks choice
Frameworks choice
 
Python web frameworks
Python web frameworksPython web frameworks
Python web frameworks
 
Jab12 - Joomla! architecture revealed
Jab12 - Joomla! architecture revealedJab12 - Joomla! architecture revealed
Jab12 - Joomla! architecture revealed
 
Drupal training-1-in-mumbai
Drupal training-1-in-mumbaiDrupal training-1-in-mumbai
Drupal training-1-in-mumbai
 
Dust.js
Dust.jsDust.js
Dust.js
 
Making sense of the front-end, for PHP developers
Making sense of the front-end, for PHP developersMaking sense of the front-end, for PHP developers
Making sense of the front-end, for PHP developers
 
Autolab Workshop
Autolab WorkshopAutolab Workshop
Autolab Workshop
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
Daniel Steigerwald: EsteJS - javascriptové aplikace robusně, modulárně a komf...
Daniel Steigerwald: EsteJS - javascriptové aplikace robusně, modulárně a komf...Daniel Steigerwald: EsteJS - javascriptové aplikace robusně, modulárně a komf...
Daniel Steigerwald: EsteJS - javascriptové aplikace robusně, modulárně a komf...
 
NodeJS - Server Side JS
NodeJS - Server Side JS NodeJS - Server Side JS
NodeJS - Server Side JS
 
Decoupled drupal + vue.js
Decoupled drupal + vue.jsDecoupled drupal + vue.js
Decoupled drupal + vue.js
 
What's New in OpenLDAP
What's New in OpenLDAPWhat's New in OpenLDAP
What's New in OpenLDAP
 
Unit Test for ZF SlideShare Component
Unit Test for ZF SlideShare ComponentUnit Test for ZF SlideShare Component
Unit Test for ZF SlideShare Component
 
MongoDB Jump Start
MongoDB Jump StartMongoDB Jump Start
MongoDB Jump Start
 
JS digest. October 2017
JS digest. October 2017 JS digest. October 2017
JS digest. October 2017
 
Lately in php - 2019 May 4
Lately in php - 2019 May 4Lately in php - 2019 May 4
Lately in php - 2019 May 4
 
Seminar.pptx
Seminar.pptxSeminar.pptx
Seminar.pptx
 
Polymer 101
Polymer 101Polymer 101
Polymer 101
 
Plone Intranet under the hood
Plone Intranet under the hoodPlone Intranet under the hood
Plone Intranet under the hood
 

Dernier

Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 

Dernier (20)

Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 

Using Zend Framework 2 Book Presentation

  • 1.
  • 2. About the Author ● My name is Oleg Krivtsov ● I'm a C/C++ and PHP software developer ● I received a PhD degree in Computer Science in 2010 ● I enjoy writing programming articles ● Besides writing, I love skiing and watching Formula-1
  • 3. Subject of the Book ● ● The book is about programming web-sites with Zend Framework 2 Zend Framework is a modern and popular PHP web development framework: ● professionally looking web-sites ● scalable and secure web-sites ● easy to test and maintain ● utilizes the best practices and common design patterns (Model-View-Controller, etc.)
  • 4. Subject of the Book ● Technologies: ● ● HTML ● CSS ● ● Apache, PHP 5.3+, MySQL JavaScript Closely related libraries: ● Twitter Bootstrap CSS Framework ● jQuery ● Doctrine ORM
  • 5. Audience of the Book ● ● ● This book is intended for beginner Zend Framework 2 developers Start with simple things The first Zend Framework book that is easy to read and understand for a newbie
  • 7. About Leanpub This book is available through Leanpub book publishing service ● ● ● Publish early, publish often Obtain this book at a lower cost and give your feedback to the author Get the high-quality product
  • 8. Get a Free Sample ● Before buying the book, read a free sample ● The sample contains the book chapters ● Some parts of the chapter text are skipped
  • 9. Structure of the Book 1.Introduction to Zend Framework 2 2.Zend Skeleton Application 3.Web Site Operation 4.Model-View-Controller 5.URL Routing 6.Page Appearance and Layout 7.Collecting User Input with Forms 8.Advanced Usage of Forms
  • 10. Examples and Source Code ● ● Book text is illustrated by code examples Code is publicly available on GitHub https://github.com/olegkrivtsov/using-zendframework-2-book
  • 11. Chapters Overview ● Chapter 1: Introduction to Zend Framework 2 ● What is a PHP framework? ● ZF2 components ● Differences between ZF1 and ZF2 ● ZF2 and competing frameworks
  • 12. Chapters Overview ● Chapter 2: Zend Skeleton Application ● Configuring Apache/PHP/MySQL ● How to create a new web site in ZF2 ● Downloading and installing the skeleton app ● How to use Compozer ● Apache Virtual Hosts ● Creating NetBeans project
  • 13. Chapters Overview ● Chapter 3: Website Operation ● What are PHP namespaces, interfaces and class autoloading ● The PSR-0 standard: what is it? ● HTTP request and responce ● Application life cycle and main events ● Application configuration explained ● Service manager
  • 14. Chapters Overview ● Chapter 4: Model-View-Controller ● What are controllers, models and view templates? ● Variable containers ● Controller plugins and view helpers ● Domain Driven Design (DDD) and available model types
  • 15. Chapters Overview ● Chapter 5: URL Routing ● Common URL structure ● Simple route types (Literal, Segment, Regex, etc.) ● Combining routes (SimpleRouteStack, TreeRouteStack) ● Routing configuration ● Writing own route type
  • 16. Chapters Overview ● Chapter 6: Page Appearance and Layout ● Twitter Bootstrap CSS Framework ● Page layout in Zend Framework 2 ● Common view helpers ● Writing own view helpers ● Adding CSS and JavaScript to a web page ● View models and page composition
  • 17. Chapters Overview ● Chapter 7: Collecting User Input with Forms ● What is an HTML form? ● Styling HTML Forms with Twitter Bootstrap ● Forms and Model-View-Controller ● Form Elements ● Adding Form Validation Rules ● Standard Form View Helpers
  • 18. Purchase ● ● ● Click the Buy Now button Multiple payment options (PayPal, Visa, MasterCard) 100% happiness guarantee
  • 19. Get the Book with a Discount Use the following Coupon: DI$COUNT10
  • 21. Learn ZF2 with the "Using Zend Framework 2" book! http://leanpub.com/using-zend-framework-2

Notes de l'éditeur

  1. Hello Everybody! My name is Oleg Krivtsov, and I'm excited to present you my new programming book named "Using Zend Framework 2". The book is dedicated to easily creating modern web sites with PHP and Zend Framework 2. This book is written in a way which makes it easy to learn Zend Framework 2 for beginner PHP developers. The "Using Zend Framework 2" book is avialable in three convenient formats: PDF, electronic books and Kindle.
  2. First let me briefly introduce myself. I have been professionally developing C/C++ and PHP software since tweny o'five. I received a PhD degree in Computer Science in twenty ten. I like contributing to open-source and writing programming articles for popular web resources. Besides writing, I love skiing and watching Formula-1.
  3. So, the "Using Zend Framework 2" book is about programming web-sites with Zend Framework 2. Zend Framework is a modern PHP web development framework intended for building professionally looking, scalable and secure web-sites, which are easy to test and maintain. The framework utilizes the best practices and common design patterns, inspired by the evolution of web development industry. This includes Model-View-Controller pattern, allowing to organize the code in a consistent and standard way, making it easier to implement automatic code testing.
  4. This book is not only about Zend Framework 2, but also about closely related libraries. Although Zend Framework 2 has dedicated component for accessing the database, in this book we use third-party library called Doctrine ORM -- a de-facto standard object-oriented way to perform database management. We also describe Doctrine-provided database migrations allowing to apply changes to the database in a standard way. In the sample applications we will create in chapters of this book, Twitter Bootstrap CSS Framework is used, allowing to produce nice looking visual appearance and layout of HTML elements on the web pages.
  5. This book is intended for beginner Zend Framework 2 developers, who doesn't know much about PHP autoloading, namespaces, interfaces, design patterns and the things like that. I strive to give material starting with simple things that a beginner should understand. Advanced things go last in a chapter. This makes this book the first Zend Framework book that is easy to read and understand for a newbie.
  6. The "Using Zend Framework 2" book is available through Leanpub service. You can get the book by visiting the following page: http leanpub dot com slash using-zend-framework-2 On the page that appears, you can see the book cover, its title, a brief description and the table of contents. At the bottom of the page, you can find the "Discuss the Book with the Author" button. Clicking this button opens the forum where you can read what others think about this book and provide your own feedback.
  7. The idea behind Leanpub is to let book authors an abilitity to publish their books early and work on them in short iterations. Thanks to Leanpub, you have a chance to obtain this book at a lower cost and give your feedback. This makes it possible for the author to immediately correct mistakes and enhance the places in text that you point to, thus creating a high-quality product. Your feedback is highly appreciated! You will receive all newer versions of this book for free as they appear.
  8. Before you buy the Using Zend Framework 2 book, it is recommended that you get a free sample and read it either online or download a PDF file. The free sample contains the book text, but some places of chapters are skipped. With the free sample, you will have an idea of what the book is about and what is the author's explanation style.
  9. This book is divided by chapters. A chapter is dedicated to a single topic. For example, Chapter 1 “Introduction to Zend Framework 2” is intended to make you familiar with fundamental concepts and main components of the framework; Chapter 2 “Zend Skeleton Application” is dedicated to giving you instructions to install the skeleton application, which can be used for creation of your own web sites, and so on.
  10. This ZF2 book's text is illustrated with code samples (published on GitHub). To get the samples, please visit the following page: github dot com slash olegkrivtsov slash using zend framework 2 book Each sample is a complete web-site you can install and run yourself to see Zend Framework 2 in action. You can even use the samples as a base for your own web sites. This makes this book even more suitable for beginner ZF2 developers. It may be difficult for a novice to write code without mistakes. If you are stuck or can not understand why your code does not work, you can download the complete working web application from GitHub code hosting and see it in action.
  11. Let's provide some more detailed overview of book chapters content. In Chapter 1 "Introduction to Zend Framework 2", you will learn what is a PHP framework and why you need it to develop your web site. You will talk about Zend Framework version 2 and discuss its main principles, design patterns and components. For readers who have an experience in Zend Framework 1, in this section we’ll give some information on what has changed in Zend Framework 2. We’ll also compare Zend Framework 2 with other PHP frameworks available on the market. They all have advantages and disadvantages, and here you will learn what they are.
  12. In Chapter 2 "Zend Skeleton Application", we will show how you can create your own web site from scratch. Here we will provide instructions on how to prepare your environment for developing ZF2-based applications. Configuring the development environment is the first thing you have to do when beginning with creating a new web-site. This includes installing a web server, the PHP engine with required extensions and a database. We will provide step-by-step instructions on how to download Zend Skeleton Application and install it with Composer dependency manager. We will show how to configure Apache Virtual Host. In this book, we use NetBeans IDE which is a convenient development environment. We will show how to create NetBeans project and how to work with NetBeans.
  13. In Chapter 3 "Website Operation", you will learn some theory about how a web site works. This information is incredibly useful for beginner developers. This chapter covers the concepts like PHP namespaces, autoloading and PSR-0 standard, site entry point, module loading and module entry points. It discusses the application life cycle and Zend Framework 2 events. Developers who are interested how application configuration is loaded and what is the service manager, can find a detailed explanation of these topics here.
  14. Chapter 4 is called "Model-View-Controller". As chapter's name assumes, here you will learn about what are models, views and controllers and how they cooperate to produce an HTML page seen in a web brower. This chapter explains what is Domain Driven Designa and model types you may have in your application: entities, value objects, services, factories and repositories. Beginners usually misunderstand the roles of controllers and models, making controllers "fat" and models "slim". Here you will find the instructions on how to do that correctly.
  15. Chapter 5, "URL Routing" describes the way ZF2-based application maps page URLs to controllers and their actions. We start with the description of common URL structure: what is URL schema, what segments and parts present in a typical URL. Then we proceed with a in-depth description of simple route types, like Literal, Segment and Regex, and compound route type like TreeRouteStack. The chapter ends with a real-life example showing you how to write your own route type if you really need such.
  16. Chapter 6, "Page Appearance and Layout" covers the Twitter Bootstrap CSS framework and provides instructions on using this library with your ZF2 web application. Here you will learn what is a layout template and how to switch layouts in different parts of your site. Learn what common view helpers are, and how to compose a web page with their help. We provide an example showing how to write your own view helpers.
  17. In Chapter 7, which is called "Collecting User Input with Forms", you will learn about HTML forms and their usage in context of Zend Framework 2. Here we describe how to apply Twitter Bootstrap styles to your form, what is a form model and how to render a form with special view helpers. How to add form validation rules to make your forms secure. Now, after this chapters overview, I hope that you have some general understanding of the Using Zend Framework 2 book is about and ready to make a decision whether to buy the book or not.
  18. Before buying the book, it is recommended that you read a free sample available on the book site. Once you have reviewed the free book sample, you can purchase a full copy of the book. The book is available in three commonly used formats: PDF (for PCs), EPUB (for electronic books) and MOBI (for Kindle). There are several payment options available. You can pay for the book either through your PayPal account or with a credit card, like Visa or MasterCard. Leanpub provides a 100 percent happiness guarantee. If you are not satisfied with a book you purchased on Leanpub, you can get a refund with two clicks.
  19. Thank you for watching this video. If you think that the "Using Zend Framework 2" book will be useful for you, than specially for you, I provide a discount to my book. To obtain the book with a discount, use the BLOG10 coupon code.
  20. If you have some questions, suggestions or critical remarks, please feel free to contact me trough my E-mail address: [email_address] I will be more than happy to answer you. Or, you can contact me through my Google+ account: https://plus.google.com/111761320345042135586 You can follow my personal blog which I update on a regular basis, approximately once a week: http://olegkrivtcov.wordpress.com/ Your feedback is highly appreciated.
  21. Thank you for watching this video about the "Using Zend Framework 2" book, which is the first book about Zend Framework which is easy to read for beginners.