DEV Community

Cover image for A comparison between Laravel and Phalcon

A comparison between Laravel and Phalcon

Adnan Babakan (he/him) on December 22, 2019

Hey there DEV.to community! Recently I was working on a personal project and a commercial one. Since I had some basic knowledge about Laravel and ...
Collapse
 
fakharak profile image
Fakhar Anwar

Laravel architecture is monolithic, resource-hungry and does not scale well, while Phalcon has a reasonably good documentation and can be fused with Swoole PHP (Asynchrnous PHP Extension that allows its own HTTP server). If you like you can use parts of Laravel with Phalcon (if you are easy with Laravel, and want speed in some parts)

Selling Laravel only because it has more documentation material is not wisdom that one should expect from Software Engineers. As a software engineer you should rate a technology better based on its Engine and Non-functional Quality Attributes (Good Documentation is important but not the first and only thing to look at).

Laravel Eloquent implements Active Record pattern which makes data access slow for larger applications.

Collapse
 
adnanbabakan profile image
Adnan Babakan (he/him)

Hi
Thanks for your comment
I will try better next time I compare things
Thanks for the suggestion

Collapse
 
gabrieldevops profile image
gabo

Excelente enfoque visto desde el programador, pero no así desde el consumidor, el que va pagar por nuestros desarrollos, prefiero Phalcon por la RAPIDEZ de los sitios eso se traduce en $$. y lo explico:
MacDonalds el factor diferenciador que lo llevo al exito fue sabor y RAPIDEZ hacia el consumidor.
Domino´s Pizza el factor diferenciador que lo llevo al éxito fue RAPIDEZ hacia el consumidor.
Facebook es RAPIDO y en tiempo Real.
Whatsapp RAPIDO y en tiempo Real.
El usuario o consumidor antes que cualquier otra característica busca RAPIDEZ, TIEMPO REAL, incluso pasa con tu novia, que pasa cuando la esperas?? Laravel es la novia que se tarda en salir, si muy bonita, se puso su maquillaje(todas las cuestiones que acabas de explicar, despliegue, Middleware, etc) al final la novia se tardo.
Cuando desarrollamos pensamos siempre como programadores, o en función de nuestra capacidad, pero raramente pensamos como USUARIOS, como la GENTE QUE CONSUME en nuestros SITIOS, POR ESO ES IMPORTANTE la gente de Marketing. por eso PREFIERO PHALCON,

Collapse
 
fakharak profile image
Fakhar Anwar

FYI. Laravel architecture is monolithic, resource-hungry and does not scale well, while Phalcon has a reasonably good documentation and can be fused with Swoole PHP (Asynchrnous PHP Extension that allows its own HTTP server). If you like you can use parts of Laravel with Phalcon (if you are easy with Laravel, and want speed in some parts)

Selling Laravel only because it has more documentation material is not wisdom that one should expect from Software Engineers. As a software engineer you should rate a technology better based on its Engine and Non-functional Quality Attributes (Good Documentation is important but not the first and only thing to look at).

Laravel Eloquent implements Active Record pattern which makes data access slow for larger applications.

Collapse
 
eduluz1976 profile image
Eduardo Luz

Great work. Thanks for your post.
The only point I believe could give one more point to Phalcon, is on "deployment". Using Phalcon in Docker containers, is pretty easy to deploy to production. What do you think?

Collapse
 
adnanbabakan profile image
Adnan Babakan (he/him)

Hi
Yes for sure using Docker would be easy. But anyhow that is still some extra work to be done and it is not possible on shared hostings I believe.

Collapse
 
eduluz1976 profile image
Eduardo Luz

You are right. On shared hosting it is hard to do. Personally, I didn't find any Service Provider that supports Phalcon.

Thread Thread
 
adnanbabakan profile image
Adnan Babakan (he/him)

Believe me it kinda impossible to find one. LOL

Thread Thread
 
cleverhosting profile image
Norbert • Edited

I am hoster and i do.

phalcon 3.4 with php 5.6 and php 7.2
and

phalcon 4 with php 7.4

if you need shared hosting with phalcon i can help

Collapse
 
ahmedarain344 profile image
ahmedarain344

I think Laravel is user-friendly due to its features and is more popular for building websites. Whereas Phalcon is a high-performance PHP framework that focuses on speed and efficiency. Unlike traditional PHP frameworks that are written in PHP, Phalcon is implemented as a C extension for PHP.

Collapse
 
genievn profile image
Thanh Nguyen

Great article, thanks for sharing!

I found Phalcon much more enjoyable to work with, may I translate your article and give credit link?

Thanks & Br,
Thanh

Collapse
 
adnanbabakan profile image
Adnan Babakan (he/him)

Hi
I am glad you enjoyed the article. And yes of course you can translate it. What language though?

Collapse
 
genievn profile image
Thanh Nguyen

Thanks a lot, I will do Vietnamese translation on my personal blog, will update the link when I complete. Very few people knows about Phalcon, Laravel is king here :)

Thread Thread
 
adnanbabakan profile image
Adnan Babakan (he/him)

Thanks for your effort. Iran is also a country in which not many people know about Phalcon.

Thread Thread
 
genievn profile image
Thanh Nguyen

Long article, and I finished Vietnamese translation :)
Thanks again and I am waiting to read your next post

web68.vn/vi/p/so-sanh-laravel-va-p...

Collapse
 
cosmy81 profile image
Cosimo

Laravel has got middewares but Phalcon has plugins that work like middleware and consent to integrate the controllers

Collapse
 
kentelewa profile image
William Kent Telewa

Such a thorough comparison... and the humor was top notch.. I'll go with the boy Phalcon

Collapse
 
adnanbabakan profile image
Adnan Babakan (he/him)

Hahaha

Collapse
 
hknguyenvu profile image
Envy

dev.to/adnanbabakan/comment/jkh1

I have not tried other hosting but you can use phalcon on hawkhost hosting (hawkhost.com) :)

Collapse
 
parsaakbari80808080 profile image
Parsa Paris

Well done!

Collapse
 
adizbek1998 profile image
Adizbek Ergashev

Good comparison, thanks.