Phalcon is an open source web framework delivered as a C extension for the PHP language providing high performance and lower resource consumption.
Phalcon is written in Zephir/C with platform independence in mind. As a result, Phalcon is available on Microsoft Windows, GNU/Linux, FreeBSD and MacOS. You can either download a binary package for the system of your choice or build it from source.
To install Phalcon on Windows:
- Download Phalcon for Windows
- Extract the DLL file and copy it to your PHP extensions directory
- Edit your php.ini file and add this line:
extension=php_phalcon.dll
- Finally, restart your web server
Hint: To ensure that your Phalcon installation was successful, debug with <?php phpinfo(); ?>
and search for a section mentioning the Phalcon extension.
On a Unix-based platform you can easily compile and install the extension from sources.
Prerequisite packages are:
- PHP 5.5.x/5.6.x/7.0.x development resources (PHP 5.3 and 5.4 are no longer supported)
- GCC compiler (Linux/Solaris/FreeBSD) or Xcode (MacOS)
re2c
Ubuntu:
sudo apt-get install php5-dev libpcre3-dev gcc make
Suse:
sudo zypper install php5-devel gcc make
CentOS/Fedora/RHEL
sudo yum install php-devel pcre-devel gcc make
Follow these instructions to generate a binary extension for your platform:
git clone git://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install
Add the extension to your php.ini:
extension=phalcon.so
Finally, restart the web server.
if you have specific php versions running
git clone https://github.com/phalcon/cphalcon
cd cphalcon/build/64bits # or cd cphalcon/build/32bits
make clean
# Example: /opt/php-5.6.15
CUSTOM_PHP_INSTALLATION_PATH=/your/php/installation/path
# Example: /opt/php-5.6.15/bin/phpize --clean
$CUSTOM_PHP_INSTALLATION_PATH/bin/phpize --clean
# Example: /opt/php-5.6.15/bin/phpize
$CUSTOM_PHP_INSTALLATION_PATH/bin/phpize
# Example: ./configure --with-php-config=/opt/php-5.6.15/bin/php-config
./configure --with-php-config=$CUSTOM_PHP_INSTALLATION_PATH/bin/php-config
make && sudo make install
Edit your php.ini (for the specific version) and add this line:
extension=phalcon.so
Save the file and Restart the web server.
https://github.com/phalcon/vagrant
https://github.com/majksner/php-phalcon-mamp
Phalcon Framework is built under the Travis CI service. Every commit pushed to this repository will queue a build into the continuous integration service and will run all PHPUnit tests to ensure that everything is going well and the project is stable. The current build status is:
Our community is developing amazing extra features for Phalcon every day via Incubator. There are resources to enhance your experience with the framework and that enlarge the main features.
Just give it a try and help us improve Phalcon even more!
Phalcon is open source software licensed under the New BSD License. See the docs/LICENSE.txt file for more