{"id":6905,"date":"2022-07-21T11:16:38","date_gmt":"2022-07-21T09:16:38","guid":{"rendered":"http:\/\/blog.bart.sk\/en\/?p=6905"},"modified":"2022-11-24T14:10:05","modified_gmt":"2022-11-24T13:10:05","slug":"php-still-top-almost-30-years-old-language-top-popularity-rankings","status":"publish","type":"post","link":"https:\/\/blog.bart.sk\/en\/php-still-top-almost-30-years-old-language-top-popularity-rankings\/","title":{"rendered":"PHP is still TOP \u2013 Why Is an Almost 30-Years-Old Language at the Top of Popularity Rankings?"},"content":{"rendered":"<p><b>According to W3Techs statistics, PHP is still the most widely used<\/b> <b>server-side programming language. In almost 30 years of its existence, it has climbed to version 8.1, and thanks to great documentation, it has gained the appreciation of millions of programmers who now form a community helping each other. It includes us \u2013 PHP is a daily part of our lives and we decided to pay tribute to it with a mini series of blogs about why and where we use it. <\/b><\/p>\n<figure id=\"attachment_9689\" aria-describedby=\"caption-attachment-9689\" style=\"width: 1000px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blog.bart.sk\/wp-content\/uploads\/2022\/07\/ben-griffiths-2Rd-hwT2xQ0-unsplash.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9689\" src=\"https:\/\/blog.bart.sk\/wp-content\/uploads\/2022\/07\/ben-griffiths-2Rd-hwT2xQ0-unsplash.jpg\" alt=\"PHP je st\u00e1le TOP - Bart Digital Products\" width=\"1000\" height=\"667\" \/><\/a><figcaption id=\"caption-attachment-9689\" class=\"wp-caption-text\">https:\/\/unsplash.com\/photos\/2Rd-hwT2xQ0<\/figcaption><\/figure>\n<h3><b>What is PHP?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">PHP [1], or <\/span><b>Hypertext Preprocessor<\/b><span style=\"font-weight: 400;\"> in full, is a scripting language used primarily to create web applications. PHP is run exclusively on the server side, where various actions take place, such as computing and generating HTML code. In most cases, this code is then sent to the client, where it&#8217;s also rendered. Sometimes a server response can be sent in the form of an object representing the necessary data.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This scripting language was created in <\/span><b>1994<\/b><span style=\"font-weight: 400;\"> and its author is <\/span><b>Rasmus Lerdorf<\/b><span style=\"font-weight: 400;\">, who designed it to resemble languages like C or Perl, because the developers of the systems\/applications for whom the new language was intended, used these [2]. After all, it&#8217;s easier to learn things that are at least a little familiar to us (author&#8217;s note: applies to everything :D). The latest major version of PHP at the time of writing this post (July 2022) is <\/span><b>PHP 8.1<\/b><span style=\"font-weight: 400;\"> [3].<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><b>Popularity and use<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Despite its age and constantly evolving new technologies, PHP is still at the forefront of web application development today. This is also evidenced by the W3Techs statistics, according to which as of the current date (July 2022) the PHP language dominates the<\/span> <span style=\"font-weight: 400;\">server-side ranking of programming languages with <\/span><b>77.6%<\/b><span style=\"font-weight: 400;\"> [4].<\/span><\/p>\n<p><figure id=\"attachment_9686\" aria-describedby=\"caption-attachment-9686\" style=\"width: 760px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blog.bart.sk\/wp-content\/uploads\/2022\/07\/w3techs_trends.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9686 size-full\" src=\"https:\/\/blog.bart.sk\/wp-content\/uploads\/2022\/07\/w3techs_trends.png\" alt=\"PHP je st\u00e1le TOP - Bart Digital Products\" width=\"760\" height=\"280\" \/><\/a><figcaption id=\"caption-attachment-9686\" class=\"wp-caption-text\"><span style=\"font-weight: 400;\">The ranking of the use of server-side programming languages for the development of web applications [4].<\/span><\/figcaption><\/figure><span style=\"font-weight: 400;\">Even after almost 30 years from the beginning, there are several benefits to such use. The main one is a large community of developers who help solve various problems or propose alternative solutions, for example, on the (certainly familiar for you) portal<\/span><a href=\"https:\/\/stackoverflow.com\/questions\/tagged\/php\"><span style=\"font-weight: 400;\"> Stack Overflow<\/span><\/a><span style=\"font-weight: 400;\">. Another advantage is the number of software frameworks that have been developed, but this is a big topic that we&#8217;ll perhaps look at later.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">If you&#8217;re a developer, you&#8217;ll surely also appreciate clear<\/span><a href=\"https:\/\/www.php.net\/docs.php\"><span style=\"font-weight: 400;\"> documentation<\/span><\/a><span style=\"font-weight: 400;\"> with code samples to help you understand the given functionality faster. PHP itself is a simple (moderately demanding at most ?) and at the same time full-featured programming language that can do a lot \u2013 just look at the documentation?. But now we can only guess what future major versions of PHP will bring.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">It will probably come as no surprise when that we also use PHP in <\/span><b>bart.sk<\/b><span style=\"font-weight: 400;\"> on several projects where we actively work and improve them.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><b>Usage options<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">What are the possibilities of PHP, or what we use it for (of course, it changes from project to project, but these are the most common cases):<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><b>Performing an action <\/b><span style=\"font-weight: 400;\">\u2013 for this, we can imagine, for example, displaying a product page where multiple activities are performed, such as loading inventory, prices, product images and the like. Another action may be processing a submitted order. Web applications allow different actions based on their focus \u2013 the result of these actions is HTML code or JSON, which represents data and information about the success of the request sent from the client. The advantage of using PHP in this case, for example, is its speed \u2013 it allows (compared to some technologies even three times) faster loading of websites [5].<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><b>Performing tasks in the background <\/b><span style=\"font-weight: 400;\">\u2013 if we have 10,000 products on an e-shop, each of them with different variants, different stock levels, prices, etc., it&#8217;s difficult to update data manually, for example through an administration system. We therefore update such data in an automated manner, which is the most effective solution in terms of time and, ultimately, in financial terms as well. This also avoids problems such as typos in the names or poor stock settings. Here, too, of course, the speed of PHP is a great advantage.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><b>Implementation of external services<\/b><span style=\"font-weight: 400;\"> \u2013 if it&#8217;s necessary for our system to enable processing of orders by delivery services or to enable full-text search, it&#8217;s necessary to connect it with another system. Such a connection can be implemented in different ways. In general, we can imagine a request sent from the client to the server and then from the server to an external service, where the information is further processed according to requirements and needs. Implementation is made easier thanks to PHP because this language is well compatible with other programming languages in which the external service may be coded [5].<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">We&#8217;ll cover more details about what PHP can do in the next blog.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><b>Summary<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">And finally, a small summary from this post about the PHP programming language.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&lt;?php<\/span><\/p>\n<p><span style=\"font-weight: 400;\">$language = &#8216;PHP&#8217;;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">$type = &#8216;server-side&#8217;;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">$version = &#8216;8.1&#8217;;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">$popularity = &#8216;high&#8217;;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">$difficulty = &#8216;low\/medium&#8217;;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">$fullFeatured = true;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">$advantages = [&#8216;community&#8217;, &#8216;documentation&#8217;];<\/span><\/p>\n<p><span style=\"font-weight: 400;\">$usageInWebDevelopment = 77.6;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">$usageInBart = true;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">?&gt;<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><b>References<\/b><\/h3>\n<ol>\n<li><a href=\"https:\/\/www.php.net\/manual\/en\/intro-whatis.php\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.php.net\/manual\/en\/intro-whatis.php<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.php.net\/manual\/en\/history.php.php\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.php.net\/manual\/en\/history.php.php<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.php.net\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.php.net\/<\/span><\/a><\/li>\n<li><a href=\"https:\/\/w3techs.com\/technologies\/history_overview\/programming_language\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/w3techs.com\/technologies\/history_overview\/programming_language<\/span><\/a><\/li>\n<li><a href=\"https:\/\/light-it.net\/blog\/why-use-php-main-advantages-and-disadvantages\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\"> https:\/\/light-it.net\/blog\/why-use-php-main-advantages-and-disadvantages\/<\/span><\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"According to W3Techs statistics, PHP is still the most widely used server-side programming language. In almost 30 years&hellip;","protected":false},"author":37,"featured_media":6906,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":""},"categories":[199,211],"tags":[224,293,294,295],"_links":{"self":[{"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/posts\/6905"}],"collection":[{"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/comments?post=6905"}],"version-history":[{"count":4,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/posts\/6905\/revisions"}],"predecessor-version":[{"id":6911,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/posts\/6905\/revisions\/6911"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/media\/6906"}],"wp:attachment":[{"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/media?parent=6905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/categories?post=6905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/tags?post=6905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}