Logo
  • PHP
    • HipHop / HHVM
    • Modern PHP
    • PHPStorm
    • LAMP
    • Laravel
    • Composer
    • PDO
  • JavaScript
    • node.js
    • AngularJS
  • CSS
    • SASS
    • “CSS4” (CSS level 4)
  • HTML
  • Git
  • LAMP
  • Vagrant
  • UI / UX
  • Architecture of …
  • Off-Topic
With ♥ from Berlin
December 25, 2013
Chris
Modern PHP, PHP, PHP-compiling
10

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

PreviousNext
php-phalcon-logo

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:

php-benchmark-phalconphp-benchmark-phalcon-memory

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.

This article was written quite a while ago (8 years), please keep this in mind when using the information written here. Links, code and commands might be outdated or broken.

Random articles

  • PHPStorm: 42 Tips and Tricks (47min video talk by Mikhail Vink at Dutch PHP Conference 2015)PHPStorm: 42 Tips and Tricks (47min video talk by Mikhail Vink at Dutch PHP Conference 2015)
  • What’s new in PHPStorm 9What’s new in PHPStorm 9
  • Experimenting with HHVM at Etsy (Link)Experimenting with HHVM at Etsy (Link)
  • Dangerous Performance Myths in the Web (video talk by Thomas Lohner, PHPUG Latvia)Dangerous Performance Myths in the Web (video talk by Thomas Lohner, PHPUG Latvia)
  • Install MINI in 30 seconds inside Ubuntu 14.04 LTSInstall MINI in 30 seconds inside Ubuntu 14.04 LTS
  • MINI2, an extremely simple barebone PHP application on top of SlimMINI2, an extremely simple barebone PHP application on top of Slim
  • MINI, an extremely simple barebone PHP applicationMINI, an extremely simple barebone PHP application
  • How to setup / install PHP 5.6 on Ubuntu 14.04 LTSHow to setup / install PHP 5.6 on Ubuntu 14.04 LTS
  • Support FLARUM, the future of PHP forum scripts (with some dollars on Kickstarter)Support FLARUM, the future of PHP forum scripts (with some dollars on Kickstarter)
cphalconPHPpre-compiling
Share this

10 Comments

  • Pragya Daga
    September 20, 2017 8:21 am

    Ye, this is the fastest ever framework of PHP. Phalcon PHP benchmark is the new and latest framework to create dynamic websites.

    Reply
  • cybernet2u
    November 19, 2014 9:24 pm

    the latest version is 1.3.4 … you should update this :)

    Reply
  • Eric
    April 1, 2014 7:28 pm

    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/

    Reply
  • Joe Privett
    February 27, 2014 2:10 pm

    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.

    Reply
    • Chris
      February 27, 2014 9:31 pm

      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

      Reply
    • Yellow
      June 27, 2014 3:28 am

      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.

      Reply
  • Matthew Setter
    January 31, 2014 7:24 am

    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.

    Reply
  • aditia
    January 26, 2014 2:32 am

    I haven’t jump in to phalcon yet, cause mostly work on shared hosting environment, I hope phalcon team have solution for this problem

    Reply
  • Luke
    January 24, 2014 1:04 am

    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.

    Reply

Leave A Comment Cancel reply

Hacked french TV channel exposed passwords in TV interview (video, screenshots, links)

This week a major french TV networks was hacked (Article on CNN #1, #2), resulting in 11 channels being completely

vagrant

A preinstalled Vagrant box with PHP HipHop / HHVM and Ubuntu 13.10 (Saucy Salamander)

Here’s an excellent downloadable Vagrant box that’s brings you a preinstalled HHVM / HipHop for PHP within a Ubuntu 13.10

php-7

PHP 6.0 will be PHP 7

Germany’s excellent PHP Magazin just posted interesting news: The next major version of PHP will be PHP 7, the development

set up a local virtual machine for development with vagrant and puphpet / puppet (and ubuntu, linux, php, apache, mysql)

A list of downloadable Vagrant boxes (CentOS 5.9 / 6.4, Ubuntu 12 / 13, Debian 6 / 7 / 7.1 / 7.2)

Offical boxes (directly from Vagrant) Ubuntu 12.04 LTS 32-bit http://files.vagrantup.com/precise32.box Ubuntu 12.04 LTS 64-bit http://files.vagrantup.com/precise64.box   Boxes from puppetlabs.com Seems

mod-rewrite-ubuntu-14-04-lts

EOL lists of Ubuntu, Debian and CentOS for your server plannings

Chosing the right server operating system will probably save your life and avoid a lot of stress with your clients.

Berlin, prepare for TOA conference (15th – 17th of July)

If you are in Berlin right now (and have 80-300 € to spend and 2-3 days of holidays (or “spontanious

Interesting stats on SONY’s hacked passwords

In 2011 SONY’s Playstation network got hacked, 77 million accounts have been compromised, and more than 1.000.000 passwords – saved

Install MINI in 30 seconds inside Ubuntu 14.04 LTS

This is a guideline on how to install MINI – an extremely simple naked PHP application – more or less

github-logo-octocat

GitHub buys Easel.io, a code-free full website creator worth a look

GitHub has just aquired Easel.io (which is NOT easel.ly who offer something similar for infographics / powerpoint !), a powerful

java vs php

Switching from Java to PHP. Seriously. A very interesting and pre-judice-free talk with Ph.D. Aris Zakinthinos

Ph.D. Aris Zakinthinos, CTO of achievers.com, a well-scalability-experienced guy and former IT employee of the military, has just delivered one

1/4

Categories

Search

Redesigning Windows 8 – fantastic and clever drafts by Jay Machalani
Useful basic linux stuff: Show kernel version, distribution name and distribution version on Ubuntu systems
php uk conference
PHP Opcache Explained by Julien Pauli (video from PHP UK Conference 2014)
php
How to prevent PHP sessions being shared between different apache vhosts / different applications
mod-rewrite-ubuntu-14-04-lts
How to enable mod_rewrite in Ubuntu 12.04 LTS
vagrant
A preinstalled Vagrant box with PHP HipHop / HHVM and Ubuntu 13.10 (Saucy Salamander)
windows-xp-eol
Windows XP is officially dead from today. Do you know people still using it ? Punch them.
js javascript
How JavaScript really works – An introduction into the JavaScript call stack by Philip Roberts (20min video)
css3-chrome-font
Google rolls out Chrome 37, finally fixes horrible font-rendering
JavaScript ECMAScript6 – A short video introduction (5min)
sass
New features in SASS 3.3 (a talk by SASS-creator Chris Eppstein)
angularjs
Two excellent introductions into AngularJS by Todd Motto
hiphop php
Vote for “Hack” for HipHop/HHMV support (future style PHP) in PHPStorm 8
This picture shows the icon of blindness
How blind people use websites (video with Sina Bahram, blind accessibility researcher)
laracon-2014-eu-amsterdam
Laracon 2013 – Kapil Verma: Engineering Complex Applications with Laravel 4 (40min video)

Tags

apache bash centos composer conference coupon CSS debian fonts framework git GitHub hack HHVM HipHop HTML HTML5 IDE JavaScript JS LAMP laravel linux mod_rewrite MVC MySQL Nginx optimization PHP PHP 5.5 PHP 5.6 phpmyadmin PHPStorm security server SSD Ubuntu UI UX vagrant video virtual machine voucher VPS wordpress
Side-Project: Wordle-Solver:
www.wordle-helper.info

Pages

  • Privacy Policy
 
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT