Upload
bo-andersen
View
177
Download
0
Embed Size (px)
Citation preview
Introduction to Zend Framework 2by Bo Andersen
What is Zend Framework 2?A popular and professional open source PHP framework
Builds on best practices
Enterprise ‘friendly’
Modern in that it utilizes new tools and technologies
Enables developers to write better code, and to write it fast
Mainly used for web applications
Initially released in September 2012
Developed by Zend Technologies (+ the community)
Benefits of Zend Framework 2
Modular architectureCode is logically separated into modules
Modularity is a core part of the framework, unlike in ZF1
Separation of concerns
Cleaner and more structured code
Highly extensible
ModernUses modern PHP features (PHP >= 5.3)
Namespaces
Lambda functions and closures
Late static binding
100% object-oriented
All of the code base is written within classes - and almost all of your code will be, too!
Loosely coupled componentsZF2 components are developed with minimal dependencies on other
components
Together, the components form an extensive web application framework
Zend Framework 2 is mostly used for web application, but not exclusively
Components can be used as standalone libraries
Even in applications that are not developed in ZF2!
Dependency Injection (DI)ZF2 provides a dependency injection container
Manages dependencies among services/objects
Implements IoC (Inversion of Control)
Also accomplishes this by implementing the service locator pattern
The benefits of using dependency injection are many
The code base is much, much easier to test
Avoid repeatably wiring objects together
The use of the DI container is optional
You don’t have to worry about this for now at all
In ZF2, one often practices Inversion of Control without even knowing it!
Extensively unit testedZend Framework 2 is extensively unit tested with phpUnit
This means that the framework is more robust
Less error prone when new features or patches are introduced
The ZF2 project uses Git for revision control, and pull requests must be accompanied with appropriate unit tests
Ensures a higher code standard than many other open source projects
Good quality control is enforced
and much more!
This presentation is part of my Zend Framework 2 online course.
Get 50% discount by navigating to the below URL!
https://www.udemy.com/zend-framework-2-from-beginner-to-professional/?couponCode=SS50