Is Zend Dead? Is Laravel Losing Breath? Trends of PHP Frameworks in Numbers
I was curious, how all PHP frameworks are doing, so I've looked at downloads and trends of each PHP framework. And here are the results.
There are plenty What is the Best PHP framework(s) in 20X posts all over the Internet. Usually written by someone, who uses one of them and prefer them. It's pretty easy to put out many arguments, why is your favorite framework "the best framework". These posts mislead the reader because only someone using all PHP frameworks out there in equal time and skill could evaluate it objectively.
I wanted to separate feelings and opinions of influencers - mostly framework leads or people paid for working in the framework (myself including) - from numbers and facts. The active community, with long duration and rising trend will provide a much better idea, how the framework is really successful. You can use marketing and made up stories, but if the community isn't happy with the framework in the long term, the numbers will show.
I've downloaded a few numbers from Packagist API for every package in the vendor name. E.g. for Symfony framework, all
symfony/* packages are included.
Then I took the sum of package downloads in the last 12 months and the trend in last 12 months. From those, I made an average for the whole framework.
Some packages were out only 6 months, but rising in downloads with + 8 000 % trend, because they were a new split of monorepo. Imagine "X is Rising in + 8 000 % downloads in a Year!" - That's marketing nonsense. That's why small packages with less than 1000 downloads a day or less than 12 months old are excluded as outliers.
Instead of copy-pasting conditions here, check the full process in this PR.
Cut the small-talk, these are the numbers (to the day of publishing this post).
This table is out of date as the days go by. See updated results.
|Framework||Monthly Average||Yearly Total||Year Trend|
|CakePHP||41 826||11 643 390||+ 127 %|
|Symfony||3 011 473||881 984 370||+ 43 %|
|Laravel||187 429||56 268 780||+ 14 %|
|Zend||550 187||165 652 860||+ 12 %|
|Nette||26 233||8 319 180||+ 8 %|
|Yii||52 151||16 470 660||+ 6 %|
It seems that the most active community is now CakePHP. I've been following their very dynamic upgrade path with Rector sets, so it makes sense.
- What packages are active in those frameworks?
- What frameworks are dinosaurs - with big long-tail effect in total downloads, but losing in trends?
- What frameworks have hidden cool utils packages?
There is a detailed table where you can find these answers:
I dare you to find any flaws in these numbers. Kick me in the nuts in the comments ↓
So next time you'll read "X is the Best PHP Framework...", ask for numbers behind the statement and share this table.