dimecres, 24 d’octubre del 2012

PhalconPHP: A PHP Framework as an Extension

PhalconPHP is a web framework delivered as a C extension providing high performance and lower resource consumption.

Install it is easy if you have experience building PHP. There is a port for FreeBSD if you disagree compilations :)

In this post: Instal·lant una màquina blava - 4) PHP 5.4 you can view the apt-get install's mandatory to build PHP and other extensions.

The requirements are : sudo apt-get install php5-dev php5-mysql gcc make

As explained in the README file: Follow these instructions to generate a binary extension for your platform: git clone git://github.com/phalcon/cphalcon.git cd cphalcon/build export CFLAGS="-O2 -fno-delete-null-pointer-checks" phpize --clean phpize ./configure --enable-phalcon make sudo make install Add extension to your php.ini extension=phalcon.so Finally restart the webserver

To test it, you can install an example app: INVO https://github.com/phalcon/invo cd /var/www git clone git://github.com/phalcon/invo.git cd invo echo 'CREATE DATABASE invo' | mysql -u root -p cat schemas/invo.sql | mysql -u root -p invo vi app/config/config.ini [database] host = localhost username = root password = ***** name = invo

Really fast! Are good news