Installing Zend Framework on OS X (Leopard)

Today I needed to use Zend Framework on my iMac’s local web server, so here’s how I installed it. 

I prefer using subversion where possible to download any open source projects, and since Zend have an svn repository available I decided to use that. 

sudo svn co http://framework.zend.com/svn/framework/standard/branches/release-1.7/library/ /usr/lib/php/libraries/zend-framework-1.7/

This will follow the latest updates to version 1.7 – you can simply run svn update anytime a minor version is released.

You can then include this in any of your projects with:

set_include_path(
get_include_path().PATH_SEPARATOR.
'/usr/lib/php/libraries/zend-framework-1.7/');

Although I’ve gone through these steps on my OS X Leopard workstation, they would also work equally well on other Unix / Linux distributions like Ubuntu, Centos, Fedora etc..