The End of PHP?
A look at PHP’s frameworks and its future
A hot topic in recent years is whether PHP is losing its leading position or even going to its end. After all, many internet companies are trying out other languages. Some languages draw our attention greatly. Golang is well known for the coroutine. Java is best for the perfect ecological system. And Python is skilled in computing and artificial intelligence. But surely, PHP won’t go to its grave.
We will analyze it in the following sections:
- The Development of PHP
- PHP Frameworks
The Development of PHP
PHP is always heading forward. Many excellent programmers devote themselves to PHP’s development. As a result, a new version of PHP is released almost every year. The version of 7.3 was released in 2018, and the 7.4 will come out at the end of 2019.
The development of PHP is amazing. 7.0 reconstructs the kernel of PHP. And the performance of PHP is boosted by two to three times as the new zend engine is added.
Whether a language is strong enough or not is closely related to its framework. There are frameworks, such as Laravel and Yii, which have been developers’ favorites for many years and projects. Meanwhile, Swoft, though a new framework, attracts our attention and motives us to study it.
Laravel is a PHP-based web framework for building high-end web applications using its significant and graceful syntaxes. It comes with a strong collection of tools and provides application architecture. Moreover, it includes various characteristics of technologies like ASP.NET MVC, CodeIgniter, Ruby on Rails, and many more. This is an open source framework.
It facilitates developers by saving time and helps reduce thinking and planning when developing an entire website from scratch. Along with that, Laravel also assists in introducing basic security to your application.
Hence, all its features can boost your web development pace. If anyone is familiar with the basics of PHP along with some intermediate PHP scripting, then Laravel can craft your work more easily.
Resources for learning:
- Laravel 5.4 from Scratch (Laracasts)
- Build a task list with Laravel and Vue
Yii is a generic Web programming framework, meaning that it can be used for developing all kinds of Web applications using PHP. Because of its component-based architecture and sophisticated caching support, it is especially suitable for developing large-scale applications such as portals, forums, content management systems (CMS), e-commerce projects, RESTful Web services, and so on.
Swoft is a PHP high-performance microservice coroutine framework. It has been published for many years and has become the best choice for PHP. It can be like Go, a built-in coroutine web server and common coroutine client, and is resident in memory, independent of traditional PHP-FPM. There are similar Go language operations, similar to the Spring Cloud framework flexible annotations.
One way to find out whether the industry still likes PHP is looking into its ecological system: the packagist. As the below figure shows, the number of packagists for PHP has mushroomed with an index growth pattern. By now, the number of packagists has reached 223,217, and the total install number is around 14,827,204,847. The ecological system of PHP is reconstructing faster and faster.
PHP won’t step into its grave. You should take a look at it, and think about it carefully.