Zend Framework 2.0 ออกตัว Stable แล้ว!

หลังจากที่ Zend Framework ออก version 1.0 ออกมาเมื่อปี 2007 ผ่านมา 5 ปี วันนี้ก็ได้เวลาของ version 2.0 เสียที จาก Zend Framework 2.0.0 STABLE Released! และ Changelog: 2.0.0 ผมสรุปสั้นๆ ตามนี้

ใน Zend Framework 2 มีทีมพัฒนาจาก Google, Microsoft, StrikeIron และ partner ต่างๆ มากมายเข้าร่วมพัฒนาเพื่อสร้าง API ติดต่อกับ Web Services ของตัวเองให้ดีมากขึ้น

การเปลี่ยนแปลงใน Zend Framework 2 นั้นมีดังต่อไปนี้

  • สนับสนุน PHP 5.3 ขึ้นไป เพราะใช้ namely namespaces, late static binding, lambda functions และ closures มาพัฒนา เพราะฉะนั้นได้เวลาเรียนรู้กันแล้วครับ (จริงๆ มันควรจะเริ่มกันนานแล้วนะ)
  • 100% Object-oriented code และ Component designed (dependencies on other component) ตอนนี้แยกเดี่ยวๆ ได้ดีมากขึ้น
  • รองรับ Pyrus, Composer, PHPUnit และ Travis CI เพื่อช่วยพัฒนาตัวเว็บ

มี Key Feature ส่วนของ Component ใหม่คือ

  • ModuleManager
    This new module system is designed with flexibility, simplicity, and re-usability in mind
  • ServiceManager
    The Service Locator is a service/object locator, tasked with retrieving other objects.
  • EventManager
    Component designed for the following use cases
    – Implementing simple subject/observer patterns.
    – Implementing Aspect-Oriented designs.
    – Implementing event-driven architectures.


Changelog: 2.0.0

Zend Framework 2 has been years in the making. Version 1.0.0 was released in July 2007

Zend Framework 2.0.0

This is the first stable release of the new version 2 release branch.

04 September 2012


New and/or refactored components include:

– EventManager – provides subject/observer, pubsub, aspect-oriented programming,
signal slots, and event systems for your applications.
– ServiceManager – provides an Inversion of Control (IoC) container for managing
object life-cycles and dependencies via a configurable and programmable
– DI – provides a Dependency Injection Container, another form of IoC.
– MVC – a newly written MVC layer for ZF2, using controllers as services, and
wiring everything together using events.
– ModuleManager – a solution for providing plug-and-play functionality for
either MVC applications or any application requiring pluggable 3rd party code.
Within ZF2, the ModuleManager provides the MVC with services, and assists in
wiring events.
– Loader – provides new options for autoloading, including standard, performant
PSR-0 loading and class-map-based autoloading.
– Code – provides support for code reflection, static code scanning, and
annotation parsing.
– Config – more performant and more flexible configuration parsing and creation.
– Escaper – a new component for providing context-specific escaping solutions
for HTML, HTML attributes, CSS, JavaScript, and combinations of contexts as
– HTTP – rewritten to provide better header, request, and response abstraction.
– I18n – a brand new internationalization and localization layer built on top of
PHP’s ext/intl extension.
– InputFilter – a new component for providing normalization and validation of
sets of data.
– Form – rewritten from the ground up to properly separate validation, domain
modeling, and presentation concerns. Allows binding objects to forms, defining
forms and input filters via annotations, and more.
– Log – rewritten to be more flexible and provide better capabilities
surrounding message formats and filtering.
– Mail – rewritten to separate concerns more cleanly between messages and
– Session – rewritten to make testing easier, as well as to make it more
configurable for end users.
– Uri – rewritten to provide a cleaner, more object oriented interface.

Many components have been ported from Zend Framework 1, and operate in
practically identical manners to their 1.X equivalent. Others, such as the
service components, have been moved to their own repositories to ensure that as
APIs change, they do not need to wait on the framework to release new versions.

Welcome to a new generation of Zend Framework!

1 thought on “Zend Framework 2.0 ออกตัว Stable แล้ว!”

Comments are closed.