Description
This course will provide you with best practices for web development with the Zend Framework version 2. After installing it, you will discover its architecture and concepts. You will design modules, forms, tackle dependency injection and use the main components of the framework.
Who is this training for ?
For whom ?Developers and architects.
Prerequisites
Training objectives
Training program
- Introduction
- Definition of a framework and its benefits.
- General presentation of the Zend Framework.
- Successive evolutions since Zend 1.
- Installation of Zend Framework with Composer.
- MVC architecture.
- Application skeleton.
- Practical work Creation of a project.
- Object Oriented Programming
- Reminders: classes, objects, visibility, encapsulation, accessors, constructor, magic methods.
- Object design: references, associations, inheritance, abstract classes, interfaces.
- Design patterns: Factory, Model View Controller, Data Mapper, Table Gateway, Front Controller, Two Step View.
- PSR standards (0/1/2) and class autoloading.
- Practical work Design of an Object model.
- Using the framework
- Code type for Model, Controller, View? Using Layout, ViewModel, available and custom view helpers.
- Error handling, plugins Controllers.
- Practical work Development of an address book under Zend Framework.
- Access to databases
- Databases simplified with Zend\Db.
- The Doctrine ORM and the Doctrine Module.
- Practical work Data manipulation via the ORM Doctrine.
- The forms
- Zend\Form: forms management.
- Filtering and validation: Zend\Filter, Zend\Validate, Zend\InputFilter.
- Object conversions /paintings with Hydrators.
- Best practices with Zend Framework
- Dependency injection: Zend\Di and Zend\ServiceManager.
- Writing unit tests with PHPUnit.
- Mock injection via the ServiceManager.
- Creating modules, using popular Zend Framework modules: ZfcUser, ZendDeveloperTools, BjyProfiler.
- Debugging and profiling with XDebug.
- Other components
- Authentication and rights management.
- Mails, Logs, Session, Config.
- Internationalization with Zend\ I18n.
- Zend EventManager.
- What's new and changes in Zend Framework 3
- PSR-7, zend-diactoros and zend-expressive.
- The new ServiceManager.
- The new EventManager.
- Migrate an application Zend Framework 2 to Zend Framework 3.