Professional Documents
Culture Documents
Landscape
Report
Top PHP Technologies,
Strategies, and Trends
Foreword
To the reader,
PHP celebrated its 25th birthday this past year. It has come a long way from its roots as a template
parsing system that would run C functions as it encountered tags. Now at version 8.0, PHP offers full
object-oriented capabilities, an opt-in strict-typing system, a Just-In-Time (JIT) compiler, extensions
for just about any data-base in use today, robust date and time processing tools that put other
languages to shame, and far, far more. It powers content management systems, eCommerce, customer
rights management, and resource manage-ment systems. APIs feeding mobile applications and
communicating between businesses rely on PHP.
I began programming in PHP in late 2000. The language was free and open source, which meant I
didn’t need to pay for licenses in order to learn the language, nor to run a web server with it. Even then,
PHP offered a ton of connectivity and integration options with databases and mail servers and more
that gave instant value and ease of use to developers.
When I joined Zend in 2005, Object Oriented Programming (OOP) was just starting to take hold and
stake its place in the language. The capabilities added in PHP 5, and expanded in PHP 7, helped power
and create an ecosystem of libraries and frameworks that allow developers to be instantly productive
and develop new features quickly.
The language today is still recognizable as the language from 20 years ago, though it offers far more
and better features to allow me as a developer to write flexible, maintainable, and correct software. I
can even use the language to write web servers — a possibility I’d never considered 20 years ago.
While you can still get started writing PHP just as easily as you did 20 years ago, the challenges of
creating a PHP application have grown, in large part because we are creating more complex and
It’s truly an exciting time to be a PHP developer and I’m eager to see what the new capabilities
provided by PHP 8 will bring us in the next few years.
13 Development Technologies
16 Asynchronous Programming
18 Resources
The survey, which was promoted via social media and email, focused primarily on how PHP
development teams are working with the language, their views on current trends within PHP
development, and the technologies they use to develop PHP applications. The survey received a total
of 670 responses.
Respondent Demographics
Respondents to the survey were primarily developers, who represented 63% of respondents.
Development managers or directors made up the next largest segment at 13% of respondents.
Rounding out the top three, IT managers or directors comprised 8% of respondents.
Consultant 4% Analyst 2%
Web Designer 3%
21-50 6%
PHP Development
Priorities
51-99 3%
In this question, we asked respondents to rank
their current development priorities, with choices
that included building new features, improving
System or Database Admin 2%
application performance, improving code quality,
deployment automation, and security.
42% 16%
17% 32%
15% 24%
15% 15%
15% 12%
12% 5%
22% 10%
28% 13%
25% 20%
14% 48%
Security
20% 2
20% 3
24% 4
The takeaway is that developers and the companies they work for are prioritizing new features over technical
debt and deployment automation. It’s possible that this is because deployment automation is largely a
one-time task, leading to its low priority in the survey. However, with security as the next highest priority,
there is clearly a need to either run on the latest PHP versions or use supported runtimes that receive security
backports. Additionally, application performance continues to be a consideration this year, which means
Application Performance Management (APM) and profiling tools are a necessity for these organizations.
Other 5%
10% | 90% 19% Our survey found that most respondents (39%)
spend between 30 minutes and an hour perform-
ing code-related research, with those spending
75% | 25% 11% an hour or more trailing just slightly at 37%.
Only 35% reported no current plans to use deprecating functionality during a new minor
Testing 35%
Development
Technologies
Refactoring 34%
For this portion of the survey, we asked respond-
ents to share their most-used PHP development
Planning 16% technologies.
Compliance 4%
Yii 4%
CakePHP 3%
Phalcon 1%
Which PHP web server do you use? Which PHP testing tools do you use?
Apache 64%
PHP Unit 78%
Nginx 28%
Other 19%
WampServer 3%
Codeception 9%
Other 3%
PHP Spec 7%
Behat 7%
Our survey found most respondents using either
Apache or Nginx, with 64% using Apache, and
28% using Nginx. WampServer was the only
Kahlan 2%
other statistically significant response at 3%.
ReactPHP 56%
PHP Outlook for 2021
As 2020 wraps up and 2021 begins, we observe
several big changes in the PHP ecosystem. First,
Swoole PHP 30% a new major version, PHP 8.0, has just dropped,
providing a number of exciting features to the
language. Many of these will help improve
AMPHP 13% developer productivity (named arguments,
constructor promotion, match expressions),
reduce maintenance overhead (union types,
enhanced covariance/contravariance rules,
Since an async framework is required in order to full range of type hinting capabilities), or increase
do async programming in PHP, we will only take performance (JIT). Features such as the Just-In-
into account the total number of respondents Time (JIT) compiler have yet to demonstrate their
choosing an async framework; this gives a total potential to the language, but could provide
of 142 respondents. Among these, ReactPHP is inroads into systems programming and
those using async. Swoole follows at 30%, then With the introduction of PHP 8.0, we also see
AMPHP at 13%. the sunsetting of community support for PHP 7.2.
This comes on the footsteps of RHEL 8, which
With Swoole’s clear advantages in speed ships with version 7.2. Considering that any LTS
and the ability to provide coroutine operating system issued prior to this year is also
support for common operations due to its on PHP 7.2 or earlier, companies depending
implementation as a PHP extension, we upon a secure PHP version or a more recent
were surprised to see ReactPHP, a userland PHP version will be required to either upgrade
async framework, dominate the responses.
their operating system or evaluate commercially
That said, ReactPHP can optionally use
supported runtimes.