Which PHP-framework to learn in 2014 ? PHALCON, by far the fastest ever!

Hey guys, just a short little article between the years: If you have the possibility to learn and use a new PHP framework for your job or your private projects, then definitly give PHALCON a try. It will change the PHP world more than just a little bit. Why ? That’s why:
This is the result of independent tests (see systemsarchitect.net) and tests made by the Phalcon crew (see phalconphp.com) and shows what other tests confirm, sometimes not that fast, but in general Phalcon is always (!) by far the #1 in all benchmarks. This awesome increase of speed / request rate is made possibly by pre-compiling. While HipHop/HHVM (if you never heard, do a google research now) is a real virtual machine inside your server that pre-compiles and serves your PHP, Phalcon is a “c-extension” that will be installed into your operating system (can be installed in Linux, Mac, Windows), not downloaded via Git like usually. With native PHP, the requested .php file is compiled at every request (which means, PHP, which is itself written in C, will do a syntax check, then the contents will be translated into C, then compiled and then executed). From my understanding Phalcon does the syntax-check and the compiling to C only once until the php file changes, so basically a request hits compiled C code, not to-be-compiled PHP code. Please comment on this article if I’m not correct here (it’s kind of hard to find out how Phalcon works on the inside without being a C developer).
Installing and getting started with Phalcon
You don’t download Phalcon like other frameworks. Phalcon needs to be installed! But that’s easy, in most unixes you do this with one or a few lines of code (here), even in Windows you simply need to drag & drop one file (useful for local development) like in this tutorial video. Don’t forget to restart.
In general Phalcon comes without PHP code (okay that’s not true as there are Unit tests for all the inbuilt function, but let’s skip this), so you start with … nothing. To create an application, you should follow the excellent intro tutorial which shows how to build something from scratch (very useful, as you’ll know every line of your project).
In case you are impatient, download the skeleton demo app like described here or get the awesome full-feature “Album O’Rama” demo application that holds information for 100.000 music tracks.
There are also some nice tutorials on the official Vimeo channel, like this one: How to create a poll application in 15 minutes with Phalcon.
Udemy.com has a paid tutorial on Phalcon here. By the way, the guy doing this tutorial is Jesse Boyer / JREAM, who has also written the most popular (and highly recommendable!) MVC framework tutorial on YouTube. This free YouTube-tutorial has changed my PHP life. ;)
More…
Have a look on Phalcon on GitHub, the official blog, Twitter and Google+.
Please also note: The currently shown version is 1.2.4, but the 2.0 branch is in development and planned for 2014.
Cool update: Sitepoint has published an article about How to integrate Phalcon directly into Vagrant (so it’s already installed when you do vagrant up).
Cool update #2: DigitalOcean has published a How to install tutorial.
Ye, this is the fastest ever framework of PHP. Phalcon PHP benchmark is the new and latest framework to create dynamic websites.
the latest version is 1.3.4 … you should update this :)
Hi,
Have a look at latest framework. Recently I came across Cygnite PHP Framework which is light-weight and with expressive syntax, powerful exception handler, Composer powered, build on couple of Symfony2 components, better performance, Writing powerful RESTful api or application is very simple.
It is under active development. Worth looking. Hopefully another good framework to use.
http://www.cygniteframework.com/
Is Phalcon fast because it doesn’t have the volume of components of other frameworks? If not, when Phalcon does have all the same components will it still be as fast? Is there any point in using Phalcon, just becasue it is fast, if HHVM is making massive speed increases for any of the long-standing/larger PHP frameworks? What would be useful is to see Phalcon match-up against the other listed frameworks when run through HHVM.
Hey Joe, it’s fast because it does mainly the same thing HHVM does, but without HHVM. Phalcon is the only framework that does not come as pure .php files, it’s delivered as compiled C(++) binaries. It also comes with a rich set of excellent professional features, so it’s definitly not stripped down! The code you add will not be precompiled to C bins, so it’s a extra point for HHVM. To be honest, there was a lot of movement in the HHVM world in the last 3 months, and with the upcoming success (I really think so!) and easy implementation of HHVM basically every framework can gain extremely in compiling speed, therefore Phalcon loses it main killer feature a little bit, that’s true… It would be interesting to see Laravel on HHVM vs. Phalcon benchmarks, but that’s a job for the hardcore experts
Also has a custom autoloader, in C, in RAM, looking after when it should actually load dependency files, not as keen to pre-load everything as standard PHP with require/include functions.
Chris, thanks for the great write-up on Phalcon. I first heard about it from Bruno over at SitePoint and have been nothing short of amazed since starting to play with it.
I haven’t jump in to phalcon yet, cause mostly work on shared hosting environment, I hope phalcon team have solution for this problem
Only the framework itself is written in C, so this one is fast as hell. But everything you write (in php) that uses phalcon as a “tool” is executed as usual every time a request comes in.