Phalcon is an open source web framework delivered as a C extension for the PHP language providing high performance and lower resource consumption.
A big thank you to our Backers; you rock!
- Get Started
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.
NOTE: Phalcon requires the PSR PHP extension to be installed and enabled.
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:
- 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 7.2.x/7.3.x development resources
g++>= 4.4 |
clang++>= 3.x |
# Use actual PHP development headers and tools here sudo apt-get install php-dev libpcre3-dev gcc make re2c
# Use actual PHP development headers and tools here sudo zypper install php7-devel gcc make re2c
# Use actual PHP development headers and tools here sudo yum install php-devel pcre-devel gcc make re2c
We recommend to use command line to build Phalcon extension suitable for your system. Another way is to use OSX MAMP ready extension: https://github.com/majksner/php-phalcon-mamp
There is Gentoo ebuilds maintained for the Phalcon: https://github.com/smoke/phalcon-gentoo-overlay
Follow these instructions to generate a binary extension for your platform:
git clone git://github.com/phalcon/cphalcon.git cd cphalcon/build sudo ./install
If you have specific php versions running
git clone https://github.com/phalcon/cphalcon cd cphalcon/build sudo ./install --phpize /usr/bin/phpize7.3 --php-config /usr/bin/php-config7.3
Add the extension to your php.ini:
Finally, restart the web server.
See CONTRIBUTING.md for details.
Meet the Incubator
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!
Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]
Support us with a monthly donation and help us continue our activities. [Become a backer]
Phalcon is open source software licensed under the BSD 3-Clause License.
Copyright © 2011-present, Phalcon Team.
See the LICENSE.txt file for more.