DEV Community

Cover image for Should I Learn PHP in 2021? Is it Still Worth it?
Harendra Kumar Kanojiya
Harendra Kumar Kanojiya

Posted on • Originally published at hackeradda.com

Should I Learn PHP in 2021? Is it Still Worth it?

Hello guys, Today I am going to talk about my personal experience of still using PHP for backend web development. I started web development in 2016 and at that time I learned PHP as a backend development language. In between 2016 to 2021 I learned many new languages and frameworks such as Node Js, Go Lang, ROR, and Python as they are in demand by companies.

I have built and managed many projects on PHP, and am still using it for some of my projects. I am going to provide some points to describe why I think to still use PHP in 2021.

Easy to learn

No doubt, PHP is very easy to learn because of the resources available for beginners and its syntax. PHP is very beginner-friendly and provides a very large community which makes it easy, to begin with.

To get started with PHP you need to install PHP and also need to have knowledge of HTML, CSS, and MySql for databases. I am going to write the very first “hello world” program in PHP to get started with.

<?php
echo “Hello World”;
?>
Enter fullscreen mode Exit fullscreen mode

Output: Hello World

Check out PHP programming books here

Popularity

PHP is very popular for web development and approx 45% of websites are using PHP for their backend. The most popular cms are also written in PHP. It has over 1,415,540 questions on StackOverflow till the date this post was written i.e Sept 23, 2021. Click here to check

stackoverflow

Development cost

It is a very big task while choosing technologies to start a new project according to the client’s budget. If you have to do a project with a very low budget (under $1k) then we have to choose cost-efficient technology, we can’t use enterprise-level technologies such as JAVA or PYTHON.

Laravel Framework

It is another big reason which I am thinking keeps PHP alive and in demand. Laravel is a very useful and great framework of PHP and it has a great development team and great mentor Taylor Otwell.

Look at google trends — Google Trends

google trends

Github stars on most popular backend web framework

  • Laravel — 66.6K
  • Django — 59.8K
  • Express — 54.5K
  • Ruby on Rails — 49.1K
  • Easy Hosting availability

PHP is very popular so it is very easy to find PHP-based hosting at a very reasonable price. There are tons of hosting providers which support PHP hosting.

The Top 10 PHP Hosting Providers

  1. Bluehost — best overall PHP hosting provider.
  2. HostGator — best for uptime.
  3. InMotion — best for secure PHP hosting.
  4. A2 Hosting — best for PHP hosting support.
  5. SiteGround — best for PHP features.
  6. Hostinger — best for affordability.
  7. iPage — best for PHP updates.
  8. DreamHost — best for storage space.
  9. WP Engine — best for scalability.
  10. HostPapa — best for online guidance.

CMS

The content management systems are another very important assets for PHP to keep it alive forever. There are many great CMS such as WordPress written in PHP.

Top 5 PHP cms framework

  1. WordPress
  2. Magento
  3. Drupal
  4. Joomla
  5. OpenCart

PHP is also used by many fortune 500 tech startups and corporate giants such as Facebook, Wikipedia, MailChimp, Slack, and Etsy e.t.c.

Summary

I have included the points to prove my point to learn PHP in 2021 or in the future. I have just shared my personal experience with PHP and other technologies please feel free to provide your feedback on my thoughts. Thank you for reading my article. If you like this please follow me for more articles like this and keep in touch.

Discussion (0)