Recently I found out, that Zend Framework 2 fully supports Composer - gem like package manager for PHP. But I couldn’t find a way to use it with Zend Framework 1 because of it’s default ZendLoaderAutoloader behavior. I really wanted to use it so I came up with dirty hack, here it is:

First you have to add require 'vendor/autoload.php'; in order to load Composer autoloader. I do it in Bootstrap.php file:
(By the way as you can see I'v put vendor folder in library, just to keep things organized.)

now we have (theoretically) access to libraries provided by Composer, but we can’t load them, because ZendLoaderAutoloader is in our way, trying to do it’s thing and load classes from appropriate folder structure. We have to bypass it, by turning it off, accessing what we need from Composer, and turning it on again, so it will be available for further auto loading.