We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How does Phalcon compare to Yaf?

Hey guys,

How does Phalcon compare to Yaf?

Thank you,



39.3k
Accepted
answer

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.



43.9k

phalcon has a much better documentation imho



-11

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,...

https://www.laruence.com/2012/09/16/2791.html

@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 :)



-60

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



9.0k
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 ?