zend framework 2.0: let's rock

37
ZEND FRAMEWORK 2.0 Juozas “Joe” Kaziukėnas http://juokaz.com / [email protected] / @juokaz

Upload: juozas-kaziukenas

Post on 18-Nov-2014

3.447 views

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Zend Framework 2.0: Let's Rock

ZEND FRAMEWORK 2.0 Juozas “Joe” Kaziukėnas

http://juokaz.com / [email protected] / @juokaz

Page 2: Zend Framework 2.0: Let's Rock
Page 3: Zend Framework 2.0: Let's Rock

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

From Vilnius

We are here

Now lives here

THE MAP

Page 5: Zend Framework 2.0: Let's Rock

http://webspecies.co.uk

Page 6: Zend Framework 2.0: Let's Rock

ZEND FRAMEWORK

Page 7: Zend Framework 2.0: Let's Rock

ARE YOU A ZF

DEVELOPER?

Page 8: Zend Framework 2.0: Let's Rock

IF YOU

ARE

NOT…

Page 9: Zend Framework 2.0: Let's Rock

ZEND FRAMEWORK

Page 10: Zend Framework 2.0: Let's Rock

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

PROBLEMS

Page 12: Zend Framework 2.0: Let's Rock

MAGIC

Page 13: Zend Framework 2.0: Let's Rock

LEARNING CURVE

Page 14: Zend Framework 2.0: Let's Rock

LEARNING CURVE

Page 15: Zend Framework 2.0: Let's Rock

CONFLICTING

Page 16: Zend Framework 2.0: Let's Rock

STILL COUPLED

Page 17: Zend Framework 2.0: Let's Rock

MOST IMPORTANTLY…

Page 18: Zend Framework 2.0: Let's Rock

SLOW*

Don’t forget the *

Page 19: Zend Framework 2.0: Let's Rock

ZEND FRAMEWORK 2.0

Page 20: Zend Framework 2.0: Let's Rock

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

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

TRENDS IN

PHP 2011

Page 23: Zend Framework 2.0: Let's Rock

MILESTONES

Autoloading & Plugin loading

Exceptions

MVC

Testing

Documentation

Internationalization

Page 24: Zend Framework 2.0: Let's Rock

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

PLUGINS

No more magic

Multiple flavors

Plugin class => alias

Fast

Page 26: Zend Framework 2.0: Let's Rock

LOADER EXAMPLES

Page 27: Zend Framework 2.0: Let's Rock

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

EXCEPTIONS EXAMPLE

Page 29: Zend Framework 2.0: Let's Rock

MVC

Many flavors, interface based

Modules done right

Controllers as services

Form & View cleanup

Page 30: Zend Framework 2.0: Let's Rock

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

DIC EXAMPLE

Page 32: Zend Framework 2.0: Let's Rock

AT LEAST 200% FASTER

Page 33: Zend Framework 2.0: Let's Rock

MORE…

Documentation

Configuration

Events

Interfaces

Community Review team

Beer (?)

Page 34: Zend Framework 2.0: Let's Rock

WHEN?

Page 35: Zend Framework 2.0: Let's Rock

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

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

THANK YOU!

Please leave feedback http://joind.in/3202

Contact me on:

• http://juokaz.com

[email protected]

• Twitter: @juokaz

* Images from flickr.com and images.google.com