Zend Framework 2 (ZF2) is the leading open-source framework for developing web applications and services with PHP. ZF2 incorporates advanced design patterns and is implemented using object-oriented code, with a component structure that incorporates a "use-at-will" highly modular design.

What will I learn?

You will learn how to leverage the power of Zend Framework 2 to build well designed, scalable and maintainable web applications quickly and competently.

You’ll be introduced to the fundamental concepts that make ZF2 such a powerful tool to create web applications that can be rapidly developed and easily deployed. You will be introduced to the components that solve common problems so that you can concentrate on solving your business problems and not re-inventing the wheel.

What will I be able to achieve?

- build a database-driven application, using Model-View-Controller design pattern
- use the EventManager to define events and set up listeners to run when events are triggered
- understand dependency injection and the ServiceManager
- know how to configure the ServiceManager
- understand the ModuleManager and associated best practices
- set up routing rules for an ZF2-based application
- know what MVC events and services are provided by ZF2 MVC component
- process forms, set up input validation,set up view scripts, properly escape data displayed in views
- understand the various rendering and response strategies
- configure a database adapter, prepare and execute queries

Audience

This course is designed for intermediate to advanced PHP developers who have a solid foundation in the PHP language and OOP. This is an introductory course and assumes no previous Zend Framework 2 experience.

While this is a fundamental level course on Zend Framework 2, it requires more than a fundamental level understanding of PHP. We will do a short review of topics but in general participants are assumed to be proficient enough in the language to understand intermediate-level code examples and to perform coding exercises.

Customer Quote

“Zend Framework 2: Fundamentals is an essential class for the working PHP professional to quickly come up to speed writing ZF2 Modules and Applications.  How to use the basics of the API and MVC framework are extensively covered.  More important, the structural concepts of "PubSub", modules and Dependency Injection are covered to create more loosely coupled software components that will save your clients huge money over time.  This class is highly suggested for independents, freelancers and corporate software engineers with a passion for excellence.”         

John Dohoney,  CTO & Owner  RightSolutions Consulting

Prerequisites

Solid understanding of PHP at an intermediate to advanced level and experience with developing object oriented PHP. 

Class Format

This course provides a series of ten 2-hr instructor-led lectures coupled with practical examples and student exercises. Participants are provided with a course guide, and the solution code for a practice application used as a teaching tool throughout the course. You will also be able to access the session recordings for a full 30 days after completion of the course. This class can be also delivered by an instructor on site.

Class outline

 

1

INTRODUCTION TO ZF2 AND ESSENTIAL CONCEPTS

  1. ZF2 Key Features
  2. ZF2 Architecture
  3. How ZF2 Works
  4. ZF Architecture and MVC
  5. Decoupling
  6. Namespaces
  7. Autoloading
2

DESIGN PATTERNS AND MVC

  1. Design Patterns
  2. MVC Elements and Implementation
  3. ZF2 MVC: Event-Drive Architecture
  4. Key MVC Events
  5. Services in MVC
3

EVENT MANAGER AND SHARED EVENT MANAGER

  1. Event Manager (EM)
  2. Trigger Events
  3. Available Methods
  4. Aggregates
  5. Shared Event Listeners
  6. Identifiers
  7. Shared Event Manager (SEM)
4

 SERVICE MANAGER

  1. Service Manager (SM)
  2. Service Types
  3. Configuring Services
5

MVC AND MODELS

  1. Structure of an Application
  2. Modules in MVC
  3. Structure of a Module
  4. Bootstrapping a Modular Application
  5. Events
  6. MVC-related Module Configuration
  7. Zend\ModuleManager
  8. ModuleManager Events and Listeners
  9. Autoload Files for Modules
  10. Module Classes
  11. MVC 'bootstrap' Event
  12. ModuleAutoloader and DefaultListenerAggreagte
  13. Module Best Practices
6

CONTROLLERS

  1. MVC Events and Controllers
  2. MVC-based Action Controllers
  3. AbstractActionControllers Interfaces
  4. Controller Plugins
  5. Accessing a Request and Response
  6. Registering Module-specific Listeners
7

ROUTING

  1. Routing Basics
  2. ZF2 Router Types
  3. ZF2 HTTP Route Types
8

VIEW LAYER

  1. Zend\View
  2. View Model
  3. Layouts
  4. Alternate Rendering & Response Strategies
  5. PHP Renderer
  6. View Helpers
9

INPUT VALIDATION

  1. Zend\InputFilter\Input
  2. Zend\Validator
  3. Filtering
  4. Zend\Form
  5. Validating Forms
  6. Rendering Forms
10

DATABASES

  1. Zend\Db\Adapter
  2. Creating an Adapter: Quick Start
  3. Query Preparation & Execution
  4. Creating Statements
  5. Zend\Db\Sql
  6. Zend\Db\TableGateway

Reserve your spot for this class, buy the course today!

$1,200.00

Buy Now

Class Schedule

Language

Class Schedule

Hours per Session

Online

FULL

May 11, 12, 13, 14, 15, 18, 19, 20, 21 & 22

5-7am PDT

14-16h00 CET (Paris)

12-14:00 GMT

Online

June 1, 2, 3, 4, 5, 8, 9, 10, 11 & 12

10am-12pm PDT

19-21h00 CET (Paris)

17-19:00 GMT

Classroom Schedule

For French Classroom Training, please contact us – prices are different
Please email fr-formation@zend.com

Classroom

May 27, 28 & 29  

Classroom

July 1, 2 & 3  

Classroom

Additional Classroom TBD  

 

Interested in taking additional classes and achieving certification? Check out our bundle discount and save more! We recommend:

Zend Framework 2 from A-Zend Certification Online Training Course Bundle