Category Archives: Zend

Zend Framework 2 Main features

  • An entirely re-written event-driven MVC layer
  • Components practice dependency injection, supported by our Service Locator and DiC components
  • A powerful module management system
  • An EventManager, for writing event-driven systems, as well as for creating cut points in your software for introducing cross-cutting concerns.
  • A new view layer, architected around analyzing the request and generating a suitable response, be it plain old HTML, or Atom feeds or JSON.

ZendFramework 1 vs ZendFramework 2

What is major difference between ZendFramework1 and ZendFramework2

  1. ZF1 Support MVC Architecture while ZF2 support MVC and MOVE both
  2. ZF2 brought new concept Dependency Injection
  3. ZF2 is based on PHP 5.3 and support namespaces, so class name naming convention has changed from classname  Zend_Db_Table (ZF1) for class in Zend/Db/Table.php whereas in ZF2, it is class MyAuthAdapter.
  4. ZF2 is little bit slow as compared to ZF1. But it has evovled a lot from ZF1 to ZF2.
  5. ZF2’s modules really are modular. You can drop in someone else’s module, and with a simple line added to your application config file, you can be up and running in seconds
  6. ZF2 There is no application level Bootstraping, each module is responsible for its own bootstraping in module.php file located in each module.
  7. ZF2 routing is fundamentally changed. There is no application level routing, instead, routing is added on a per-module basis.
  8. ZF2 Zend_Registry doesn’t exist in ZF2, it has been indirectly been replaced by ZendServiceManager
  9. ZF2 Introduce Event Manager. Event Manager (EM) allows you to attach code to discrete events that may (or may not) happen in your application.

 

Sources:

  • http://php.net/releases/5_3_0.php
  • http://framework.zend.com/manual/2.0/en/tutorials/quickstart.di.html
  • http://blog.hock.in/zf2-for-zf1-users-part-1
  • http://blog.hock.in/zf2-for-zf1-users-part-2

 

 

Does Zendframework based on Move Architecture?

ZendFramework is Just another Framework library which support building applications using MVC architecture. But ZendFramework 2 can be used building application using MOVE (Model Operations Views Events) architecture also along with conventional MVC.

ZendFramework 2 follow SOLID object oriented design principle.

 

Sources:

http://framework.zend.com/about

Why to use Zend Framework?

Why you should use Zend Framework. Here are some benefits, which motivates web programmers to use it 🙂

Zend Framework is a fully object-oriented framework. So there are a lot of classes and interfaces which can be extended and implemented.

Based on MVC Architecture and consist of collection of class and components. Big library of components and ability to integrate new ones or customised existing. Because of loose coupling it is very easy to do customisation and integration of components.

Integration with ORM (i.e Doctrine) makes it more powerful. It is very easy to integrate other frameworks and templating engines such as JQuery, Smarty.

Zend Framework makes it easy to do TDD via Zend_Test, which uses PHPUnit, a popular unit testing framework. PHPUnit lets you test not only your Controllers, but also your library and model functions.

Because of its multiple components, complexity, and fully object-oriented approach, Zend Framework has a very steep learning curve. It becomes easier to learn due to the comprehensiveness of its documentation and community.