Living on the edge with Phalcon

Read time: 2 minutes

Phalcon is a framework that differs from the rest. Developers cannot update the framework using tools like composer with one command. Instead the extension needs to be recompiled with each new update. Some people find this a problem and a nuisance. Others, like us, find it entertaining!

We have just launched a new version (4.0.0-alpha.2). In this new version we have addressed several bugs (some found in the previous alpha version), but also introduced a large number of improvements. As with any release, especially alpha ones, we may find bugs or defects. Traditionally alpha versions are not as stable, so bugs are expected. Bugs are usually fixed and pushed in the currently working branch, and are available with the next release. Some of us like living on the edge so to speak. We really cannot wait for the next release and always want to work with the latest and greatest version! To achieve this, we will need to either compile Phalcon from Zephir or download the latest build from the working branch.

To get the latest version of Phalcon go to Phalcon’s GitHub page, switch to the relevant branch (currently 4.0.x) and download it. You can also clone the repository and switch to the 4.0.x branch.

Now you have 2 options: building or recompiling. In this article we focus on building Phalcon.


Download the latest version either via git or direct download

$ wget
$ unzip
$ cd cphalcon-4.0.x/

List everything on the folder

$ ls -1

We can see 2 folders: build and ext. If we are installing the latest stable version we normally go with the folder build; but since we are going to install the latest unstable version we need to got to the folder ext.

$ cd ext

Now we need to compile the new version. Simply run the install command

# Note, this command may require sudo privileges
$ ./install

That’s it, restart PHP-FPM or Apache.

$ /etc/init.d/php-fpm restart

Welcome to the living on the edge with Phalcon. ;)

Enjoy! If you find bugs please report them on GitHub.

Chat - Q&A


Social Media


<3 Phalcon Team

We're a nonprofit organization that creates solutions for web developers. Our products are Phalcon, Zephir and others. If you would like to help us stay free and open, please consider supporting us.