Using Zend Framework components in a Symfony2 project
After struggeling with the autoloading for a while and a little help from fellow developers on Twitter I found it actually to be quite easy.
First I move the ZF sources in /vendor/zf. I chose an unofficial github mirror for this.
Next I had to register a prefix (note: not registering a namespace!).
Now everything is almost working but there will be a lot of warnings and fatals because of all those require_once() in ZF.
Following the official ZF documentation I removed them.
Now you can just instanciate every ZF component you want.
Btw. thanks go out to Nils from PHP hates me! for the ZF/symfony logo that I stole for this post.