Get Photon the high performance micro PHP framework.

Photon is available as a PEAR package, the following instructions to get your setup running are for a relatively recent Debian based Linux distribution. You may be interested in the installation guide for OS X.
You need of course to have first PHP 5.3.2 or higher installed:

apt-get update 
apt-get install php5-cli php5-curl php5-dev php5-gd php5-geoip 
apt-get install php5-imap php-pear libcurl4-openssl-dev php5-mcrypt

ZeroMQ Installation

The installation is a bit more complex than your usual package installation as we are going to build ZeroMQ from the sources.

apt-get install build-essential uuid-dev wget pkg-config
mkdir -p /home/vendors
cd /home/vendors && wget http://download.zeromq.org/zeromq-2.1.10.tar.gz
cd /home/vendors && tar -xzf zeromq-2.1.10.tar.gz
cd /home/vendors/zeromq-2.1.10 && ./configure && make
cd /home/vendors/zeromq-2.1.10 && make install
ldconfig

Mongrel2 Installation

Mongrel2 is also available from source, but it is really easy to build it.

apt-get install sqlite3 libsqlite3-dev uuid-dev libcurl4-openssl-dev
cd /home/vendors && wget http://mongrel2.org/static/downloads/mongrel2-1.7.5.tar.bz2
cd /home/vendors && tar -xjvf mongrel2-1.7.5.tar.bz2
cd /home/vendors/mongrel2-1.7.5 && make clean all
cd /home/vendors/mongrel2-1.7.5 && make install
ldconfig

Now you have everything ready to install Photon with the PEAR package.

Photon Installation

pear channel-discover dist.photon-project.com
pear channel-discover components.ez.no
pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony-project.com
pear upgrade PEAR
pear install --alldeps photon/photon-beta
pecl install xdebug
pecl install pecl_http
echo 'extension=zmq.so' > /etc/php5/conf.d/zmq.ini
echo 'zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so' > /etc/php5/conf.d/xdebug.ini
echo 'extension=http.so' > /etc/php5/conf.d/http.ini
chmod +r /etc/php5/conf.d/*.ini

The long list of channel discovery is to automatically download the dependencies of Photon. These dependencies are nearly all for PHPUnit. You can get updates via the feed and simply browse the list of available versions.

Installation Test

You can simply run the Photon integrity tests.

hnu selftest

Create Your First Project

hnu init firstproject

Photon Upgrade

pear update-channels
pear upgrade photon/photon-beta

Get the source

Photon has its own Indefero project, this makes it easy to checkout the Photon source code.

Learn from the others

You can subscribe to the mailing list: photon.users@librelist.com, to subscribe, just send an email with Hello in the body to the list and follow the instructions. You can read the archives.

Come on IRC, we are on the channel #photonproject on the FreeNode servers.