PoPHPularity – otsch.codes

My good friend Florian Bauer not too long ago posted an article saying that PHP wants a rebranding, and he suggests to rename it to HypeScript. There was a number of response to this. Here is my two cents on that topic.
Does PHP’s recognition really lower?
One response to the article from Povilas Korop (creator of laraveldaily) was, that in his opinion, PHP is doing simply advantageous.
The creator says that PHP is nice however wants “rebranding”.
I disagree that there’s a downside, PHP is doing nice 🙂
OK, so first let’s attempt to analysis if PHP really has an issue. I attempted to analyse completely different accessible assets in regards to the recognition of programming languages. One necessary factor right here: it is in regards to the recognition amongst builders, not in regards to the total utilization for web sites. In terms of utilization we all know, that an enormous portion of the net runs on PHP, principally resulting from wordpress. So, here is what I discovered in regards to the recognition:
Stackoverflow Developer Survey 2022
I feel top-of-the-line sources about this subject is the Stackoverflow Developer Survey. Final yr’s version is predicated on the solutions from 73,268 builders from 180 nations, so it ought to be fairly consultant.
So, to see if recognition is reducing, I copied the numbers about PHP utilization, from all surveys since 2013:
All | Solely Skilled | |
---|---|---|
2022 | 20.87% | 21.42% |
2021 | 21.98% | 22.54% |
2020 | 26.2% | 25.8% |
2019 | 26.4% | 25.8% |
2018 | 30.7% | 31.4% |
2017 | 27.9% | 27.2% |
2016 | 25.9% | |
2015 | 29.7% | |
2014 | 28.9% | |
2013 | 34.8% |

So, it reveals a gradual, however regular downwards development (apart from 2017 and 2018). Particularly not too long ago in 2021 and 2022, the utilization dropped considerably, to round 21, 22 p.c (for the primary time under 25 p.c).
For 2022, Stackoverflow additionally reveals the numbers for skilled builders and folks studying to code individually. In 2022, 21,42% {of professional} builders used PHP, however solely 18.82% of the learners. In distinction to this, languages that appear to be extra standard amongst learners are: Python (43,51% professionals, 58,38% learners), C++ (20,17% professionals, 34,69% learners), in addition to C (16,7% professionals, 31,94% learners) and Java (33.4% professionals, 38.67% learners). Btw. one factor that I did not count on is that Javascript is used extra by professionals (67,9% professionals, 59,79% learners).
To me, the languages standard amongst learners, appear to correlate rather a lot with languages taught at universities. When wanting on the total numbers for these languages, solely Python actually turned extra standard total.
Additional, PHP is a language made primarily for internet growth, so it does not make a number of sense to match it with any language. Happily, Stackoverflow in recent times additionally asks about utilization of the most well-liked internet frameworks within the survey. Listed below are the numbers for some internet software frameworks:
Sadly, it is only a few years, however we will see a couple of issues. Categorical (Node.js) is used rather a lot, and Node.js total will even be used much more. As a result of for instance, since 2022 the survey additionally lists Subsequent.js already at 13.93%. Additionally, Python is fairly massive with Django and Flask. Laravel and Symfony collectively are used solely round 13% in 2022. ASP.NET (Core) appears to even be used much more than PHP though plainly its utilization dropped rather a lot from 2018 to 2021. So, these numbers it appears prefer it’s fairly clear that PHP is by far not the most well-liked selection for internet growth.
Varied Sources in regards to the World Software program Developer Inhabitants
There’s a number of completely different sources for numbers in regards to the international software program developer inhabitants. I feel the primary organizations doing the analysis, are SlashData behind the Developer Nation Pulse report and Evans Data Corporation with their Global Developer Population and Demographic Study.
In line with this article by Grid Dynamics, citing knowledge from completely different sources, there have been 5 million PHP builders in 2013, 5.5 million in 2018 and 6.1 million in 2019. And in response to this article citing SlashData, there have been 6.3 million in Q1 2021. So, in whole the variety of PHP builders is rising. Slowly however regular.
Let’s take a look on the whole variety of software program builders in that timespan. In line with this article by /slash which is citing the Developer Nation Pulse report, the full international developer inhabitants was 18.2 million in 2013 and 26.8 million in 2021. And this PDF by SlashData from 2019, linked within the Grid Dynamics article, says there have been 18.9 million in This autumn 2018 and there’ll most likely be between 21 and 23 million by the tip of 2019.
So, with these numbers it appears like this:
Complete | PHP | |
---|---|---|
2021 | 26.8 | 6.3 |
2020 | ||
2019 | 6.1 | |
2018 | 18.9 | 5.5 |
2017 | ||
2016 | ||
2015 | ||
2014 | ||
2013 | 18.2 | 5.0 |

So, regardless of that the full PHP developer group continues to be rising a bit, in recent times it is rising rather a lot lower than the full developer inhabitants. It appears like from 2018 on there’s just about an explosion of the full variety of software program engineers. And that is anticipated to go on. The predictions are, that we’ll attain 45 million builders in 2030. One might additionally argue that possibly the expansion in developer inhabitants isn’t that a lot within the discipline of internet growth. I do not know any numbers about this, however I doubt that internet growth makes for such a small a part of new builders.
PYPL and TIOBE Index
There’s additionally the PYPL and TIOBE indexes, which each present a slightly comparable image.
Disclaimer: I am not too certain in regards to the high quality of the TIOBE index. Quote from tiobe.com:
The scores are based mostly on the variety of expert engineers world-wide, programs and third occasion distributors. Fashionable serps similar to Google, Bing, Yahoo!, Wikipedia, Amazon, YouTube and Baidu are used to calculate the scores.
Abstract
All this sources could one way or the other be criticised and there are additionally some optimistic issues, like:
- Laravel being one of the standard internet software frameworks total, with regards to github stars.
- Packagist stats present that bundle installs are rising consistently (possibly additionally resulting from rising variety of packages, however for instance additionally laravel installs are rising consistently).
- It is nonetheless a really massive group with each fifth developer worldwide utilizing PHP, and it is nonetheless within the prime 10 in all of the listings.
In order we, locally all know, it is most likely not dying any time soon. However in spite of everything there’s a number of proof for a reducing total recognition of PHP, particularly in recent times. So possibly it would not harm if we might do one thing about its fame and entice extra newcomers.
Why is its Reputation reducing?
Disclaimer: that is positively all opinionated. It is not sure that its recognition is definitely reducing and whether it is, I can solely guess what could possibly be the explanations for it. That being stated, earlier than looking for a solution to why it’s reducing, I first wish to give my opinion on:
Why PHP turned standard within the first place?
Again in 1994, Rasmus Lerdorf wasn’t attempting to create a strong programming language. He needed to have one thing like a template engine. He needed so as to add little code snippets inside HTML paperwork so as to add some dynamic content material as a substitute of printing HTML from a Perl program. So, by the best way, the origins of PHP and Javascript have quite a bit in frequent: initially they each had been regarded as little script blocks inside HTML paperwork so as to add some quite simple dynamic content material.
Apart from that, Rasmus additionally targeted on the ecosystem early on and made certain it really works properly along with Linux, Apache and MySQL (Mini SQL). You could have heard of LAMP ;). It was made for internet growth and at the moment nothing in comparison with it. Quickly principally all internet hosting suppliers pre-installed PHP in every single place and recognition exploded.
To place it in a single easy assertion, I might say the primary cause it turned standard within the first place is the low entry barrier. With shared internet hosting accounts you bought the whole lot pre-installed and for native growth quickly there was additionally WAMP/MAMP. And additional, as somebody who already knew HTML, it was rather a lot simpler to make one thing work with PHP than it was with different languages accessible at the moment, like Perl. There could also be additionally varied different causes it turned standard, however in my view, that is the primary one.
And I might argue that it was just about the identical fundamental cause for Javascript to turn into standard. To get began coding JS you may simply create a file and open it within the browser. With the discharge of Node.js, JS utilization exploded, because it enabled individuals to code frontend and backend in the identical, simple to be taught, language. That language that you will most likely must be taught anyway when working in internet growth.
What occurred since then?
Since these days rather a lot has modified, so let’s take a look if these issues from the early days, that precipitated its recognition, nonetheless apply.
Simple internet hosting and native setup (LAMP/WAMP/MAMP)
The infrastructure ecosystem modified rather a lot since then. Apache is not the one internet server anymore. In actual fact nginx has already overtaken it in usage. There are a number of different standard databases these days, like PostgreSQL for instance. And in addition we frequently use different providers like Redis, RMQ or Meilisearch. So for a big half we have moved away from the basic LAMP stack. You possibly can nonetheless use it, however these days, I really would not actually suggest it anymore. Apart from that there is a myriad of choices what you can use and there are a number of makes an attempt to make it so simple as doable once more, like laravel Valet/Sail/Homestead for native and forge for manufacturing (+ deployment). However having so many choices additionally makes it tough for newcomers.
Studying Curve
The net grew, and we began seeing extra subtle internet functions as a substitute of simply easy web sites. So, individuals additionally used PHP in additional advanced methods. We separated frontend and backend code. With PHP 5, the muse for OOP was improved rather a lot, and it turned the default. Folks constructed MVC frameworks and a number of serving to libraries. So, getting began received extra advanced and there’s a lot extra to be taught these days.
However, in each instances it is just about the identical for its opponents (Javascript, Python,…) too. Every little thing received extra advanced, however that is primarily as a result of advanced necessities of recent internet apps. However the factor is: PHP is not the de facto normal for internet growth anymore that it was finish of the 90s and early 2000s. All languages/frameworks are having their benefits and downsides and all of them are placing in a number of effort to enhance.
What can we do about it?
I see lots of people doing rather a lot for the language and its ecosystem day by day. With out steps like the large enhancements in PHP 7 and laravel, PHP might doubtlessly already be irrelevant immediately. Listed below are some concepts (some even already within the course of) what we might do, so it will not turn into irrelevant sooner or later.
Decrease Entry Barrier
Set up
I imagine it is necessary to strive preserving the entry barrier as little as doable to draw newcomers (or to not scare them off). A ache level for some individuals is the native set up of PHP and switching variations. On macOS most individuals set up and replace PHP by way of Homebrew. General that is really fairly easy, however sadly typically it does not actually work for individuals as you may learn in this twitter thread for instance. I additionally skilled some hassle with it previously. A software, that I have never used but, however appears very promising to me, is PHP Monitor. Sadly the README says it’s a must to first set up Laravel Valet which I am not utilizing. The web site says you can even use it to modify variations, however so far as I can see that is solely about already put in variations. I might like to see this to work independently of valet and being able to putting in variations that are not put in but. Large could be if it might even deal with extensions. Very nice can be that it is displaying a few of the most necessary config values and guides you to the config information in your system. So, sustain the nice work Nico Verbruggen!
(UPDATE: Nico told that in an upcoming model it’s going to work with out Valet and the opposite ideas from this text are already within the works. I am actually wanting ahead to that!)
I have never used Home windows in a very long time, however I am fairly certain the PHP set up expertise for Home windows customers may also be improved rather a lot.
Debugging
One other ache level, not just for newcomers, is debugging. An enormous step previously to enhance this was Xdebug by Derick Rethans. However in my view it is not likely simple to put in and deal with for newcomers. One other nice step on this discipline is Ray by the legendary people at Spatie. I feel it could be big for the group if it was a free open supply software, however that is most likely asking an excessive amount of ????.
Documentation
On social media I am studying a number of criticism, in addition to requires assist with the official PHP documentation website (php.net) from inside the group. I imagine this may also be a vital side to draw newcomers. Imagining I might come to this web page as a newbie immediately, I might be fairly confused. No simple getting began tutorial, no overview of the ecosystem (composer, frameworks,…). And once I get to the documentation overview, there’s an enormous desk of contents the place I will not know what I am going to really must be taught. Additional a number of examples immediately appear a bit of outdated.
In distinction to php.web, check out python.org. Is not it method higher?
Once in a while I see individuals attempting a bit of redesign, like tweeted by Tim MacDonald recently. A redesign would not harm, however I feel far more necessary could be to remodel the content material and construction.
Florian (sure, the man with the HypeScript article) known as for individuals to hitch a coding session final monday, with the aim to begin constructing a greater PHP web site. The positioning is figure in progress however can already be discovered at better-php.net.
One other nice instance that good documentation is vital, is once more laravel. I am fairly certain it would not be the place it’s, with out its nice documentation.So, I hope we’ll quickly see greater enhancements on this space.
Language Evolution
By the tip of 2022, PHP 7.4 entered finish of life, which implies no PHP 7 model will get any updates (not even safety) any longer. There was fairly some speak about this, as a result of PHP 8 was solely 2 years previous at the moment and the tip of PHP 5 and swap to PHP 7, was solely 3 years in the past. You possibly can examine some PHP consumer’s frustration in this article. Having labored in an organization with a fairly large PHP codebase that was began round 2010 and consists of a number of apps/tasks, packages and microservice REST APIs, I see the purpose that main upgrades could be very heavy to carry for greater corporations. However bigger corporations in my view are an extremely necessary issue for the group, as a result of they’re going to present a number of jobs and a much bigger variety of accessible jobs attracts newcomers to be taught the language.
So, ought to we simply go on with out introducing any breaking modifications to the language? Really there’s a language that’s principally not introducing any modifications which might be breaking backwards compatibility: Javascript. For ECMAScript 6 it was determined to avoid versioning. When fascinated about how the net works, I assume you may think about why breaking modifications aren’t actually an choice for JS. You are able to do rather a lot with non-breaking modifications, however the stress of not having the ability to have breaking modifications and the language being highly regarded on the identical time, inevitably result in TypeScript.
HypeScript / P++
Once I learn Florian’s article, his naming concept “HypeScript” instantly jogged my memory of TypeScript. And that together with PHP, jogged my memory of an concept that I’ve heard in numerous types earlier than:
- Brent Roose’s concept in this video of a language that compiles to PHP, similar to TypeScript, to make generics doable in PHP. There’s even already efforts on this course like ARA and PXP.
- The thought of P++, summarized by Nikita Popov in this proposal.
So Florian’s concept is not utterly new and loopy. However Nikita additionally already identified the downsides of this concept in his proposal. I might summarize it with: principally it is similar to one other new main model that introduces very important breaking modifications together with a rebranding. Each concepts (by Brent and Nikita) could be new languages that’d exist alongside PHP. Nikita additionally talked about that:
…this wants a concerted multi-year effort from a bigger growth crew than we’ve got proper now.
I am undecided, possibly this already modified a bit with the introduction of the PHP Foundation, which leads me to:
Growth of the PHP language relied on the free work by volunteers till the PHP Basis was based finish of 2021. The Basis, on the time I am writing this text, already has 162 organizational and 1439 particular person sponsors. With this cash they’re paying Core Builders (at present 6) to make sure long-term sustainability of the PHP language growth. So for those who respect the large enhancements which have already been made in PHP 7 and eight and wish to see extra of this sooner or later, take into account donating some cash. Not solely to the Basis but in addition to the maintainers of your favorite PHP libraries by way of github sponsors.
Training / Universities
As I’m a self-taught developer and have not been to a college, I really do not know, however I heard, that PHP principally isn’t taught at universities. I googled and located some college web sites telling that they really do educate it, however I imagine it is not the bulk. I assume one cause might be, that internet growth is just one of many fields and therefor different languages are extra appropriate for training. Anyway it could be nice for the group if PHP could be taught in training.
An necessary query when contemplating to make use of a know-how in an organization is: is there sufficient assets, documentation and an lively group the place we will discover assist in case we get caught?
And as already talked about earlier than: corporations utilizing PHP present jobs => accessible jobs are making individuals be taught the language => group grows.
So for those who like PHP and wish to give again, there are a number of methods to take action:
- Contribute to open supply tasks
- Be lively on social media (twitter, mastodon,…)
- Weblog/Stream
- Reply questions on Stack Overflow
- Attend, communicate at and even arrange meetups and conferences
- Appropriate people who find themselves claiming that PHP is dangerous, for causes that had been possibly true for variations 20 years in the past, however actually aren’t legitimate in any respect anymore ????
- …
Conclusion (TL;DR)
We won’t say for sure that PHP’s recognition is reducing however there’s a number of proof that it’s.
I personally do not imagine there’s one easy lever that we will pull to enhance PHP’s fame/recognition. I feel the entire above have to be pursued and partially individuals are already engaged on them. To repeat, I feel crucial ones are:
For the People creating the Language and necessary Instruments within the Ecosystem:
- Make it as simple as doable for newcomers to get began: clean set up, nice documentation, simple debugging,…
- Be actually cautious with breaking modifications and provides customers (particularly massive corporations) sufficient time emigrate their codebases to new main variations.
For the Remainder of Us:
- Get entangled locally and provides again.
- Sponsor the PHP basis and your favorite open supply maintainers.
I imagine that PHP’s dangerous fame exterior the PHP group is closely delayed because the language improved rather a lot within the final decade (for instance see this video by Brent Roose). And right here and there I see indicators that it slowly begins getting higher already. In this article the creator says:
I could get a number of flaks for together with PHP on this listing of greatest programming languages for internet growth in 2023 however to be trustworthy, PHP is without doubt one of the greatest programming languages with regards to creating internet functions.
For my part an excellent instance for the notice, that for a fairly very long time there’s this dangerous fame, that it really does not deserve (anymore). I additionally bear in mind a couple of individuals on social media saying issues like: “After a decade I gave PHP one other fast attempt to was shocked how good it really is these days.”. So, this can be biased, however I see the fame recovering extra within the coming years.
And naturally it additionally should not be a giant competitors. There are a number of nice languages and folks shall use the fitting software for the job. I simply suppose it could be very unhappy if barely any newcomers began studying the language, due to the dangerous fame that it does not deserve.