Zend Framework with Symfony
...a component library? ...a full stack framework? Both.So, how do they compare? Why bother? You _can_ use them together. (With Symfony Components, this goes both ways)
ZF Features
- Acces to remote APIs (ws, feeds, etc.)
- Support for Lucene Indexes
- PDF generation
- Queuing
- Cloud Computing
Taking it further
Using the ZF Autoloader in your Projects Configuration. Static calls likeProjectConfiguration::registerZend();
Service Components
Zend_Gdata, Zend_Service_Amazon, Zend_Service_AkismetSidetrack: On Domain Models
Perform distinct, discrete processing tasks, without the overhead of the full framework.'cause speed is neccessary.
Unit test your domain model! - typically less complex testing harnesses
Reduce dependencies: Less bootstrapping, fewer resources :: Often faster code.
Entities: Going back to plain old classes. (Same with Hibernate, C#)Unit test your domain model! - typically less complex testing harnesses
Reduce dependencies: Less bootstrapping, fewer resources :: Often faster code.
Aggregators or Collections of Entities
Mappers - map Entities to data persistence and vice versa, could be an ORM
Service layer objects - the public API
More Considerations
Implement business / domain logic in the service layerService types offered by ZF: AMF, JSON-RPC, XML-RPC, SOAP.
Talk von Matthew Weier auf der SymfonyLive2010, also on Slideshare.
There are no comments on this page. [Add comment]