From the course: Exploring and Selecting PHP Frameworks

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Phalcon

Phalcon

If you're really convinced, you need a very fast framework. Phalcon is an interesting take on things. Rather than installing as a PHP package, it's a system-level framework written in C. With that in mind, I'm going to start talking about how to install it. Phalcon can be installed using pecl. This is very much DevOps territory, so you may not be familiar with pecl. Pecl is a PHP extension manager. In the Docker file on line 23, I'm running an update and then on line 24, installing Phalcon via pecl. On line 35, I'm enabling the extension in an INI file and adding that to the INI path. And this is kind of strange. Most PHP packages are a composer install of PHP files where there is an existing PHP extension. So from here, I need some kind of tooling. I'll make a directory. I need to be in a valid directory to make a directory. Now when I run /vendor/bin/phalcon, you'll see the output of Phalcon Devtools. Notably, there's the ability to scaffold a project. Now, a word of warning. And…

Contents