zend framework 2.0: let's rock
DESCRIPTION
TRANSCRIPT
![Page 2: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/2.jpg)
![Page 3: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/3.jpg)
WHO IS THIS GUY?
Juozas Kaziukėnas
People prefer to call me Joe
Lives in Edinburgh, UK
Runs Web Species Ltd. (still can write code)
Speaker in PHP conferences all over the world
Open source developer (Zend Framework, Doctrine etc.)
More info http://juokaz.com and @juokaz
![Page 4: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/4.jpg)
From Vilnius
We are here
Now lives here
THE MAP
![Page 6: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/6.jpg)
ZEND FRAMEWORK
![Page 7: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/7.jpg)
ARE YOU A ZF
DEVELOPER?
![Page 8: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/8.jpg)
IF YOU
ARE
NOT…
![Page 9: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/9.jpg)
ZEND FRAMEWORK
![Page 10: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/10.jpg)
ZEND FRAMEWORK
Journey from October 2005 to today
• March 2006 – 0.1
• July 2007 – 1.0
• Today – 1.11
Massive amounts of (high quality) code
The most popular PHP framework
• Developers
• Business
![Page 11: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/11.jpg)
PROBLEMS
![Page 12: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/12.jpg)
MAGIC
![Page 13: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/13.jpg)
LEARNING CURVE
![Page 14: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/14.jpg)
LEARNING CURVE
![Page 15: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/15.jpg)
CONFLICTING
![Page 16: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/16.jpg)
STILL COUPLED
![Page 17: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/17.jpg)
MOST IMPORTANTLY…
![Page 18: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/18.jpg)
SLOW*
Don’t forget the *
![Page 19: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/19.jpg)
ZEND FRAMEWORK 2.0
![Page 20: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/20.jpg)
T H E P R I M A R Y T H R U S T O F Z F 2 . 0 I S T O M A K E A M O R E C O N S I S T E N T, W E L L - D O C U M E N T E D
P R O D U C T, I M P R O V I N G D E V E L O P E R P R O D U C T I V I T Y A N D R U N T I M E P E R F O R M A N C E .
Zend Framework 2.0
![Page 21: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/21.jpg)
ZEND FRAMEWORK 2.0
Development on Git
• CLA is needed though
PHP 5.3 only
• Old code converted to namespaced
Improve, not start from scratch*
![Page 22: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/22.jpg)
TRENDS IN
PHP 2011
![Page 23: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/23.jpg)
MILESTONES
Autoloading & Plugin loading
Exceptions
MVC
Testing
Documentation
Internationalization
![Page 24: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/24.jpg)
AUTOLOADING
include_path sucks
Use maps
• Namespace => Path
• Class name => Path
ZF2 ships with class name paths for all components
Build your own on deployment
![Page 25: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/25.jpg)
PLUGINS
No more magic
Multiple flavors
Plugin class => alias
Fast
![Page 26: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/26.jpg)
LOADER EXAMPLES
![Page 27: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/27.jpg)
EXCEPTIONS
Tree of exceptions in current ZF
• Exception -> Zend_Exception -> Zend_Acl_Exception -> etc..
Using SPL exceptions
Component level interfaces
Exceptions sub-namespace in component
![Page 28: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/28.jpg)
EXCEPTIONS EXAMPLE
![Page 29: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/29.jpg)
MVC
Many flavors, interface based
Modules done right
Controllers as services
Form & View cleanup
![Page 30: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/30.jpg)
DEPENDENCY INJECTION
Zend_Registry
Service Locator
Dependency injection container
• Java
Type hinting in application, plus easier testing
![Page 31: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/31.jpg)
DIC EXAMPLE
![Page 32: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/32.jpg)
AT LEAST 200% FASTER
![Page 33: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/33.jpg)
MORE…
Documentation
Configuration
Events
Interfaces
Community Review team
Beer (?)
![Page 34: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/34.jpg)
WHEN?
![Page 35: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/35.jpg)
WHEN?
MVC milestone by the end of May
PR release following MVC completion
Beta in summer
Stable by the end of this year
![Page 36: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/36.jpg)
LET’S ROCK
Work in progress
• MVC milestone in progress
Will be faster, easier and overall better
Final release this year
Contribute!
![Page 37: Zend Framework 2.0: Let's Rock](https://reader033.vdocument.in/reader033/viewer/2022051513/546b8df6b4af9f702c8b4d00/html5/thumbnails/37.jpg)
THANK YOU!
Please leave feedback http://joind.in/3202
Contact me on:
• http://juokaz.com
• Twitter: @juokaz
* Images from flickr.com and images.google.com