We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

How does Phalcon compare to Yaf?

Hey guys,

How does Phalcon compare to Yaf?

Thank you,


Hey Luiz,

Both Yaf and Phalcon follow the same deployment strategy i.e. a module on your web server vs. tons of files on the file system. However they are quite different in terms of features. I cannot say anything about speed since I have never used Yaf. You can check the benchmarks of Phalcon in this page: https://docs.phalcon.io/en/latest/reference/benchmark.html. There is also a github repo with the code for these benchmarks which you can use and run for your own proof of concept.

Phalcon offers:

A full stack framework A micro framework for lightweight applications An ORM (Object Relational Mapper) A template engine (Volt) ** An ODM Object Document Mapper)

Currently there is work done in a Forms designer which will hopefully be available with the 1.0.0 version.

From briefly reading the Yaf manual, Phalcon has more features for you to use.

Ultimately though it is your decision as a developer based on your project needs.


phalcon has a much better documentation imho


Here is recent AB benchmark of PHP Phalcon vs. YAF - the difference is slightly better for Yaf. However, as for frameworks, there are other things to consider - robustness, available functionalities, ORM layer, web2 widgets, support for webservices, community behind, maintenance releases,...


@lubosdz That benchmark is quite old to be honest. It measures Phalcon 0.4.5 and we are at 1.2 (nearly).

As I wrote above one can get the code and run the benchmarks we have (see Github) and draw their own conclusions.

Also you can have a look at this (It doesn't have Yaf but gives you an idea regarding benchmarks) https://www.techempower.com/benchmarks/#section=data-r5&l=sg

Now it's up to date and yaf is in there, too. Phalcon is in a very good (best?) position: https://www.techempower.com/benchmarks/#section=data-r6&hw=i7&test=db&l=sg .

love it :)


Yaf is used in https://www.weibo.com, the bigest twitter-like sns website in China. Not all the company need the full stack.

edited Apr '14

Why this round 8 - multiple query put phalcon at worst position? https://www.techempower.com/benchmarks/#section=data-r8&hw=i7&test=query&l=sg

Is the result valid ?