Friday, May 8, 2015

The dawn of Phalcon

So now that we had burned our hands with Symfony2 we decided to do some proper research. After many cups of coffee we managed to limit the available frameworks down to 3.
  1. The good old Code Igniter
  2. The new kid on the block Phalcon
  3. The native php framework addon YAF
All of these frameworks delivered decent speed and low memory usage.

Now which one do we choose?
Here is a list of criteria:
  • Community support
  • Developer support
  • Extensions
  • Ease of use
  • Ease of integration 
  • Documentation
First to go is YAF:
  • Pro's
    • Very fast
    • Built using PHP
    • Built by the creators of PHP
  • Con's
    • Almost no documentation
    • Development seems to have stopped
Second to go is Code Ignitor
  • Pro's
    • Fast
    • Built using PHP
    • Full intellisense
    • Huge community support
    • Loads of extensions
    • Very good documentation
  • Con's
    • Now owned by a School
    • Latest update hasnt made use of new PHP features
    • Community seems to be moving to Laravel
So we are finally left with the PHP & C love child whose name is Phalcon.
At first I was heavily against the idea of a C based framework in a PHP project which just sounds wrong. After a bit more research it seems that its the way of the future. The reason I say this is it seems that other older frameworks seem to be moving in this direction. Here is an interest article that might help with your decision PHP vs C

So how does Phalcon work?

The low level framework is compiled C code which is available if one is brave enough to fiddle.
Next is an intermediate layer name Zephir that allows you to build extensions for the framework that compile into native C.
Next there is a PHP interface this allows the IDE to have full intellisense which trust me is a big plus.

So the team now knew all the details on the 3 frameworks and it was time to vote. Phalcon won by a landfall.

More Phalcon to follow...

No comments:

Post a Comment