{"id":3780,"date":"2022-06-28T12:45:42","date_gmt":"2022-06-28T12:45:42","guid":{"rendered":"http:\/\/the-codest.localhost\/blog\/two-reasons-you-should-not-use-php\/"},"modified":"2026-03-11T05:57:55","modified_gmt":"2026-03-11T05:57:55","slug":"divi-iemesli-kapec-nevajadzetu-izmantot-php","status":"publish","type":"post","link":"https:\/\/thecodest.co\/lv\/blog\/two-reasons-you-should-not-use-php\/","title":{"rendered":"Divi iemesli, k\u0101p\u0113c nevajadz\u0113tu izmantot PHP"},"content":{"rendered":"<p>Gadu gait\u0101 daudzi cilv\u0113ki man ir vaic\u0101ju\u0161i, k\u0101p\u0113c es uztraucos. <strong>programm\u0113\u0161ana <a href=\"https:\/\/thecodest.co\/lv\/dictionary\/how-to-hire-a-php-developer\/\">PHP<\/a><\/strong>, un daudzus gadus esmu k\u0101 mantru dzird\u0113jis divus argumentus, k\u0101p\u0113c man vajadz\u0113tu p\u0101rtraukt un s\u0101kt rakst\u012bt komerci\u0101lu programmat\u016bru t\u0101d\u0101s valod\u0101s k\u0101 <a href=\"https:\/\/thecodest.co\/lv\/blog\/top-programming-languages-to-build-e-commerce\/\">Java<\/a> vai C#.<br>\u200b<br>\u0160odien es grasos cit\u0113t \u0161os argumentus un m\u0113\u0123in\u0101t main\u012bt savu attieksmi pret <strong>PHP<\/strong> vismaz nedaudz. J\u0101, \u0161\u012b raksta virsraksts ir absurds.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176123016-0c45e1e9-5c0a-48f2-ae4a-54d8960003a1.png\" alt=\"att\u0113ls\"><br>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#1 PHP mirst<\/h2>\n\n\n\n<p>\u200b<br><strong>PHP<\/strong> mirst gadu no gada. K\u0101dreiz vispopul\u0101r\u0101kais <a href=\"https:\/\/thecodest.co\/lv\/blog\/find-your-ideal-stack-for-web-development\/\">t\u012bmek\u013ca vietne<\/a> valoda tagad zaud\u0113 popularit\u0101ti ar katru m\u0113nesi, galvenok\u0101rt uz <a href=\"https:\/\/thecodest.co\/lv\/dictionary\/why-is-javascript-so-popular\/\">JavaScript<\/a>.<\/p>\n\n\n\n<p>\u200b<br>Kad apl\u016bkojat skait\u013cus, paties\u012bba ir \u013coti skumja! P\u0113d\u0113j\u0101 gada laik\u0101, <strong>PHP<\/strong> zaud\u0113ja satrieco\u0161u 1,6% da\u013cu no t\u0101s k\u0101 t\u012bmek\u013ca backend valodas.<\/p>\n\n\n\n<p>\u200b<br>Ja <strong>PHP<\/strong> turpina \u0161o lejupsl\u012bdo\u0161o tendenci, 18 gadu laik\u0101 <strong>PHP<\/strong> samazin\u0101sies zem 50% no backend Web tehnolo\u0123ijas!<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176105714-fc5c2c57-6ae2-445a-a133-ac06f3125b2d.png\" alt=\"V\u0113sturisk\u0101s tendences servera puses programm\u0113\u0161anas valodu lieto\u0161anas statistik\u0101 t\u012bmek\u013ca vietn\u0113m\"><\/p>\n\n\n\n<p>\u200b<br>Bet labi, joki mal\u0101 - lai gan skait\u013ci ir re\u0101li. <a href=\"https:\/\/w3techs.com\/technologies\/history_overview\/programming_language\" rel=\"nofollow\">k\u0101 zi\u0146o W3CTechs<\/a>.<\/p>\n\n\n\n<p>Pirmais piemin\u0113t, ka <strong>PHP<\/strong> mirst, ir atrodams t\u012bmekl\u012b kop\u0161 2013. gada. Toreiz programmat\u016bras Gunslinger <a href=\"https:\/\/softwaregunslinger.tumblr.com\/post\/47131406821\/php-is-meant-to-die\" rel=\"nofollow\">public\u0113ts raksts<\/a> (kuru, starp citu, es \u013coti iesaku!), sakot, ka PHP nomirs, jo tas neatbalsta ilgsto\u0161us procesus un tam tr\u016bkst asinhronit\u0101tes.<\/p>\n\n\n\n<p>\u200b<br>Un tas ir fakts, <strong>PHP<\/strong> tam nebija rad\u012bts!<\/p>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>ja tev ir tikai \u0101murs, viss izskat\u0101s k\u0101 nagla.<\/p>\n<\/blockquote>\n\n\n\n<p>\u200b<br>Bet, atgrie\u017eoties pie skait\u013ciem, apl\u016bkosim pag\u0101ju\u0161\u0101 gada r\u0101d\u012bt\u0101jus. <a href=\"https:\/\/thecodest.co\/lv\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">dati<\/a> vietn\u0113 <strong>PHP<\/strong> Packagist pakotn\u0113s izmantot\u0101s versijas. Jaun\u0101kie dati ir pieejami avota vietn\u0113 <a href=\"https:\/\/packagist.org\/php-statistics\" rel=\"nofollow\">packagist.org<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176107004-6c0b6061-ff6b-4fcd-a6e0-3cdec01fd411.png\" alt=\"Paketes instal\u0101cijas p\u0113c PHP maz\u0101s versijas grafika\" title=\"Paketes instal\u0113\u0161ana p\u0113c PHP maz\u0101s versijas\"\/><\/figure>\n\n\n\n<p>\u200b<br>Vai t\u0101 ir mirsto\u0161as programm\u0113\u0161anas valodas jauno versiju pie\u0146em\u0161anas l\u012bkne?<\/p>\n\n\n\n<p>\u200b<br>Ja ar to nepietiek, p\u0101rbaud\u012bsim m\u016bsu \"PHP mirst\u012bbas koeficientu\" sal\u012bdzin\u0101jum\u0101 ar cit\u0101m valod\u0101m.<br>\u200b<\/p>\n\n\n\n<p>Dati anal\u012bzei ir \u0146emti no<a href=\"https:\/\/madnight.github.io\/githut\/#\/pushes\/2022\/1\" rel=\"nofollow\">GitHut 2.0<\/a>, kas \u0123ener\u0113 diagrammu par to, cik daudz <code>git push<\/code> katrai valodai Github kop\u0161 2012. gada, saska\u0146\u0101 ar sh\u0113mu - \"Valodu procentu\u0101lais sadal\u012bjums l\u012bnijveida diagramm\u0101 par\u0101da 10 popul\u0101r\u0101k\u0101s (vai manu\u0101li atlas\u012bt\u0101s) valodas kop\u0161 2012. gada\/ 2. ceturk\u0161\u0146a\".<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176108444-c68dce87-ba23-4ab5-92de-5fdc961ca0f0.png\" alt=\"programm\u0113\u0161anas valodas procentu\u0101l\u0101 sadal\u012bjuma grafiks\" title=\"programm\u0113\u0161anas valodas procentu\u0101lais sadal\u012bjums \"\/><\/figure>\n\n\n\n<p>\u200b<br>K\u0101 redzat <strong>PHP<\/strong> k\u0101 ar\u012b citas popul\u0101ras valodas, piem\u0113ram, <a href=\"https:\/\/thecodest.co\/lv\/case-studies\/providing-a-team-of-ruby-developers-for-a-fintech-company\/\">Rub\u012bns<\/a>, C\/C++, <a href=\"https:\/\/thecodest.co\/lv\/dictionary\/what-is-python-good-for\/\">Python<\/a> p\u0113d\u0113jos gados ir piedz\u012bvoju\u0161as iev\u0113rojamu popularit\u0101tes kritumu Github, tom\u0113r ir v\u0113rojama aug\u0161upejo\u0161a tendence, un m\u0113s sagaid\u0101m, ka p\u0113c ilg\u0101ka s\u0101nso\u013ca perioda t\u0101s atgriez\u012bsies augst\u0101s poz\u012bcij\u0101s. <em>(tas nav padoms par ieguld\u012bjumiem)<\/em><\/p>\n\n\n\n<p>\u200b<br>S\u0101kotn\u0113jais <code>hype<\/code> taj\u0101 pa\u0161\u0101 diagramm\u0101 redzams ar\u012b Javascript valodas lietojums. Secin\u0101jumus un to anal\u012bzi es jau atst\u0101ju jums, d\u0101rgais las\u012bt\u0101j.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176109091-38a63b8f-e240-4c98-9ce6-27fb6f77e5c0.png\" alt=\"att\u0113ls\"><\/p>\n\n\n\n<p>\u200b<br>Bet, no otras puses, mirsto\u0161ai valodai nevajadz\u0113tu palielin\u0101t darba pied\u0101v\u0101jumu skaitu programm\u0113t\u0101jiem, vai ne?<br>\u200b<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176109644-6e80387f-dbfb-4f87-b910-c59ee23de450.png\" alt=\"att\u0113ls\"\/><\/figure>\n\n\n\n<p>\u200b<br>\u0160\u012b raksta rakst\u012b\u0161anas br\u012bd\u012b es varu izv\u0113l\u0113ties no 171 darba pied\u0101v\u0101juma vien\u0101 no vado\u0161ajiem darba port\u0101liem. <a href=\"https:\/\/thecodest.co\/lv\/blog\/the-codest-guide-how-to-successfully-outsource-from-poland\/\">Polija<\/a>, no kur\u0101m 50 ir paredz\u0113tas jaunie\u0161iem. <strong>PHP<\/strong> mirst, vai ne?<br>\u200b<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176115563-64e70819-b525-4071-a19d-bac019b4cd28.png\" alt=\"PHP meme - php mirst \" title=\"PHP mirst meme \"\/><\/figure>\n\n\n\n<p>Un, run\u0101jot par naudu... vai zin\u0101j\u0101t, ka <strong>PHP<\/strong> un t\u0101 avots <a href=\"https:\/\/thecodest.co\/lv\/dictionary\/what-is-code-refactoring\/\">kods<\/a> kop\u0161 2021. gada novembra uztur <em>neatkar\u012bga atkl\u0101t\u0101 pirmkoda<\/em> kopiena<a href=\"https:\/\/opencollective.com\/phpfoundation#category-ABOUT\" rel=\"nofollow\">PHP fonds<\/a> kas <strong>maks\u0101 iev\u0113rojamus naudas l\u012bdzek\u013cus.<\/strong> atv\u0113rt\u0101 pirmkoda izstr\u0101d\u0101t\u0101jiem par ieguld\u012bjumu <code>php-src<\/code>?<\/p>\n\n\n\n<p>At\u0161\u0137ir\u012bb\u0101 no cit\u0101m valod\u0101m un ietvarstrukt\u016br\u0101m, kas bie\u017ei vien pieder lieliem uz\u0146\u0113mumiem, izstr\u0101des kodols. <a href=\"https:\/\/thecodest.co\/lv\/dictionary\/how-to-lead-software-development-team\/\">komanda<\/a> tiek maks\u0101ts tie\u0161i no fonda konta, kas tiek uztur\u0113ts no priv\u0101tuz\u0146\u0113mumu, piem\u0113ram, JetBrains un Symfony Corp, iemaks\u0101m, k\u0101 ar\u012b no<a href=\"https:\/\/opencollective.com\/phpfoundation#category-CONTRIBUTE\" rel=\"nofollow\">nelieli ieguld\u012bjumi no individu\u0101liem izstr\u0101d\u0101t\u0101jiem.<\/a>.<\/p>\n\n\n\n<p>Atv\u0113rt\u0101 koda programmat\u016bra vis\u0101 t\u0101s kr\u0101\u0161\u0146um\u0101!<\/p>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#2 PHP ir briesm\u012bgs<\/h2>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<p>J\u0101, \u0161is arguments vienm\u0113r izskan no to izstr\u0101d\u0101t\u0101ju mutes, kuri ir iepazinu\u0161i stipri tipiz\u0113tas, sal\u012bdzin\u0101mas valodas.<br>\u200b<br>Apl\u016bkojot diagrammu ar datiem, kas sav\u0101kti<a href=\"https:\/\/insights.stackoverflow.com\/survey\/2021#most-loved-dreaded-and-wanted\" rel=\"nofollow\">StackOverflow aptauja<\/a> no 2021. gada, var redz\u0113t, ka 10 834 respondenti, kas ir gandr\u012bz 60% no kop\u0113j\u0101 respondentu skaita, atzina PHP par \"briesm\u012bgu\".<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176115975-3c189a18-0ee4-4cc7-87f2-9315c08e4518.png\" alt=\"att\u0113ls\"><br>\u200b<br>K\u0101 vec\u0101s skolas <strong>PHP programm\u0113t\u0101js<\/strong>, es saprotu, k\u0101p\u0113c tas t\u0101 ir. Es uzreiz atceros klasisku piem\u0113ru par atmi\u0146as probl\u0113m\u0101m. <strong>PHP<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\"><strong>&lt;?php<\/strong>\n\nklase FOO {\n  public $f;\n}\n\nklase BAR {\n  public $f;\n}\n\nwhile(1) {\n  $a = new FOO();\n  $b = new BAR();\n  $a-&gt;f = $b;\n  $b-&gt;f = $a;\n  print \"Atmi\u0146as izmanto\u0161ana: \" . number_format(memory_get_usage(true)) . \" dz\u012bvoklis\";\n  unset($a);\n  unset($b);\n}<\/code><\/pre>\n\n\n\n<p>Nespeci\u0101listiem - j\u0101, iepriek\u0161 min\u0113tais kods izraisa atmi\u0146as k\u013c\u016bdu. Un v\u0113l. S\u0101kot ar idiotisko meto\u017eu nosauk\u0161anu un piln\u012bgu lo\u0123ikas tr\u016bkumu to parametru sec\u012bb\u0101 (j\u0101, mums visiem pat\u012bk <code>str_<\/code> un <code>mas\u012bvs_<\/code>) l\u012bdz PHP slaven\u0101kajai k\u013c\u016bdai <code>T_PAAMAYIM_NEKUDOTAYIM<\/code> - PHP ir pilns ar veco versiju d\u012bvain\u012bb\u0101m un tr\u016bkumiem. Tas nenoz\u012bm\u0113, ka tas, ko m\u0113s dzird\u0113j\u0101m par <strong>PHP<\/strong> pirms da\u017eiem gadiem, joproj\u0101m ir taisn\u012bba. Valoda ir piedz\u012bvojusi milz\u012bgu metamorfozi, un \u0161odien es ar prieku apl\u016bkoju savas objektu defin\u012bcijas:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">readonly klase NotificationEvent\n{\n    publisk\u0101 funkcija __construct(\n        public string $context,\n        public User $user,\n        public string $body,\n        public DateTime $issuedAt,\n    ) {}\n}<\/code><\/pre>\n\n\n\n<p>Turkl\u0101t <strong>PHP ekosist\u0113ma<\/strong> ir iev\u0113rojami papla\u0161in\u0101jies, un tagad mums ir neticamas iesp\u0113jas rad\u012bt labu, labi tipiz\u0113tu un p\u0101rbaud\u012btu kodu. M\u0113s varam izmantot <strong>Symfony<\/strong> \u200b<a href=\"https:\/\/github.com\/CodelyTV\/php-ddd-example\" rel=\"nofollow\">izstr\u0101d\u0101t DDD lietojumprogrammas.<\/a> bez liel\u0101m probl\u0113m\u0101m, un m\u0113s varam apiet PHP sinhronit\u0101tes probl\u0113mu, izmantojot zi\u0146ojumu kopni.<\/p>\n\n\n\n<p>Un, lai gan es pats nedom\u0101ju, ka <strong>PHP<\/strong> ir piem\u0113rots, lai rad\u012btu ilgsto\u0161u backend procesus un ir milz\u012bgas veiktsp\u0113jas probl\u0113mas, kad runa ir par valsts sinhroniz\u0101ciju, Esmu ar\u012b<a href=\"https:\/\/github.com\/sebastianluczak\/php-roguelike\" rel=\"nofollow\">izveidoja PHP konsoles sp\u0113li<\/a> izmantojot Symfony + <a href=\"https:\/\/thecodest.co\/lv\/dictionary\/docker-developer\/\">Docker<\/a> ar sav\u0101m rok\u0101m k\u0101 piem\u0113ru tam, ka PHP joproj\u0101m var izmantot netradicion\u0101li.<\/p>\n\n\n\n<p>\u200b<br>V\u0113l viens <strong>PHP priek\u0161roc\u012bba<\/strong> ir t\u0101s zem\u0101 ien\u0101k\u0161anas barjera jauniem izstr\u0101d\u0101t\u0101jiem. Divu popul\u0101ru karkasu dokument\u0101cijas Symfony un<a href=\"https:\/\/laravel.com\/docs\/9.x\/installation\" rel=\"nofollow\">Laravel<\/a> un <strong>PHP<\/strong> dokument\u0101cija pati par sevi ir pietiekama, lai ar t\u0101s pal\u012bdz\u012bbu iek\u013c\u016btu backend pasaul\u0113. Pasaul\u0113, kas nav perfekta PHP, bet \u013cauj daudz ko. Izmantojot papildu bibliot\u0113kas, piem. <a href=\"https:\/\/thecodest.co\/lv\/blog\/advantages-of-laravel-services-for-your-business\/\">Laravel<\/a> Nova m\u0113s varam izveidot gandr\u012bz jebkuru m\u016bsu sist\u0113mas komponentu, izmantojot tikai divas komandas.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Afterglow<\/h2>\n\n\n\n<p>\u200b<br>Vai <strong>PHP<\/strong> mirst?<\/p>\n\n\n\n<p>N\u0113, bet tai ir probl\u0113mas ar t\u0113lu, un ir daudz j\u0101str\u0101d\u0101, lai to uzlabotu. Mums, programm\u0113t\u0101jiem, \u0161is darbs ir j\u0101veic, m\u0101cot jauno paaudzi un nododot lab\u0101ko praksi rakstu, bibliot\u0113ku un padomu veid\u0101.<\/p>\n\n\n\n<p>K\u0101 valoda, kas ir bijusi <a href=\"https:\/\/thecodest.co\/lv\/dictionary\/what-is-the-size-of-your-potential-reachable-market\/\">tirgus<\/a> divdesmit gadus, kas jau ir p\u0101rdz\u012bvojis vair\u0101k nek\u0101 vienu <code>hype<\/code> (atceraties Objective-C?) Es dom\u0101ju, ka t\u0101 tiks gal\u0101 un atrad\u012bs savu ni\u0161u.<br>\u200b<br>Un kas zina, varb\u016bt manas prognozes izr\u0101d\u012bsies pareizas un p\u0113c diviem gadiem PHP 10.x atkal piedz\u012bvos uzplaukumu?<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/thecodest.co\/contact\"><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/interested_in_cooperation_.png\" alt=\"sadarb\u012bbas baneris\"\/><\/a><\/figure>","protected":false},"excerpt":{"rendered":"<p>K\u0101 PHP izstr\u0101d\u0101t\u0101js es joproj\u0101m atceros PHP4 dienas, pirmo (neoblig\u0101to!) GC implement\u0101ciju PHP5, un es p\u0101rdz\u012bvoju PHP7 par\u0101d\u012b\u0161an\u0101s un t\u0101s sekas.<\/p>","protected":false},"author":2,"featured_media":3781,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-3780","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-development"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Two Reasons You Should Not Use PHP - The Codest<\/title>\n<meta name=\"description\" content=\"As a PHP developer I still remember the days of PHP4, the first (optional!) GC implementation in PHP5, and I lived through the _hype_ of the advent of PHP7 and its ramifications.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thecodest.co\/lv\/emuars\/divi-iemesli-kapec-nevajadzetu-izmantot-php\/\" \/>\n<meta property=\"og:locale\" content=\"lv_LV\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Two Reasons You Should Not Use PHP\" \/>\n<meta property=\"og:description\" content=\"As a PHP developer I still remember the days of PHP4, the first (optional!) GC implementation in PHP5, and I lived through the _hype_ of the advent of PHP7 and its ramifications.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thecodest.co\/lv\/emuars\/divi-iemesli-kapec-nevajadzetu-izmantot-php\/\" \/>\n<meta property=\"og:site_name\" content=\"The Codest\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-28T12:45:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-11T05:57:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why-you-php-is-not-worth-it_.png\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"thecodest\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"thecodest\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\"},\"author\":{\"name\":\"thecodest\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/person\\\/7e3fe41dfa4f4e41a7baad4c6e0d4f76\"},\"headline\":\"Two Reasons You Should Not Use PHP\",\"datePublished\":\"2022-06-28T12:45:42+00:00\",\"dateModified\":\"2026-03-11T05:57:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\"},\"wordCount\":999,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why-you-php-is-not-worth-it_.png\",\"articleSection\":[\"Software Development\"],\"inLanguage\":\"lv\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\",\"name\":\"Two Reasons You Should Not Use PHP - The Codest\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why-you-php-is-not-worth-it_.png\",\"datePublished\":\"2022-06-28T12:45:42+00:00\",\"dateModified\":\"2026-03-11T05:57:55+00:00\",\"description\":\"As a PHP developer I still remember the days of PHP4, the first (optional!) GC implementation in PHP5, and I lived through the _hype_ of the advent of PHP7 and its ramifications.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#breadcrumb\"},\"inLanguage\":\"lv\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"lv\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why-you-php-is-not-worth-it_.png\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why-you-php-is-not-worth-it_.png\",\"width\":960,\"height\":540},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thecodest.co\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Two Reasons You Should Not Use PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"name\":\"The Codest\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thecodest.co\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"lv\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"lv\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"width\":144,\"height\":36,\"caption\":\"The Codest\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/pl.linkedin.com\\\/company\\\/codest\",\"https:\\\/\\\/clutch.co\\\/profile\\\/codest\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/person\\\/7e3fe41dfa4f4e41a7baad4c6e0d4f76\",\"name\":\"thecodest\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"lv\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"caption\":\"thecodest\"},\"url\":\"https:\\\/\\\/thecodest.co\\\/lv\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Divi iemesli, k\u0101p\u0113c nevajadz\u0113tu izmantot PHP - The Codest","description":"K\u0101 PHP izstr\u0101d\u0101t\u0101js es joproj\u0101m atceros PHP4 dienas, pirmo (neoblig\u0101to!) GC implement\u0101ciju PHP5, un es p\u0101rdz\u012bvoju PHP7 par\u0101d\u012b\u0161an\u0101s un t\u0101s sekas.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thecodest.co\/lv\/emuars\/divi-iemesli-kapec-nevajadzetu-izmantot-php\/","og_locale":"lv_LV","og_type":"article","og_title":"Two Reasons You Should Not Use PHP","og_description":"As a PHP developer I still remember the days of PHP4, the first (optional!) GC implementation in PHP5, and I lived through the _hype_ of the advent of PHP7 and its ramifications.","og_url":"https:\/\/thecodest.co\/lv\/emuars\/divi-iemesli-kapec-nevajadzetu-izmantot-php\/","og_site_name":"The Codest","article_published_time":"2022-06-28T12:45:42+00:00","article_modified_time":"2026-03-11T05:57:55+00:00","og_image":[{"width":960,"height":540,"url":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why-you-php-is-not-worth-it_.png","type":"image\/png"}],"author":"thecodest","twitter_card":"summary_large_image","twitter_misc":{"Written by":"thecodest","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#article","isPartOf":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/"},"author":{"name":"thecodest","@id":"https:\/\/thecodest.co\/#\/schema\/person\/7e3fe41dfa4f4e41a7baad4c6e0d4f76"},"headline":"Two Reasons You Should Not Use PHP","datePublished":"2022-06-28T12:45:42+00:00","dateModified":"2026-03-11T05:57:55+00:00","mainEntityOfPage":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/"},"wordCount":999,"commentCount":0,"publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"image":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#primaryimage"},"thumbnailUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why-you-php-is-not-worth-it_.png","articleSection":["Software Development"],"inLanguage":"lv","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/","url":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/","name":"Divi iemesli, k\u0101p\u0113c nevajadz\u0113tu izmantot PHP - The Codest","isPartOf":{"@id":"https:\/\/thecodest.co\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#primaryimage"},"image":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#primaryimage"},"thumbnailUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why-you-php-is-not-worth-it_.png","datePublished":"2022-06-28T12:45:42+00:00","dateModified":"2026-03-11T05:57:55+00:00","description":"K\u0101 PHP izstr\u0101d\u0101t\u0101js es joproj\u0101m atceros PHP4 dienas, pirmo (neoblig\u0101to!) GC implement\u0101ciju PHP5, un es p\u0101rdz\u012bvoju PHP7 par\u0101d\u012b\u0161an\u0101s un t\u0101s sekas.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#breadcrumb"},"inLanguage":"lv","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/"]}]},{"@type":"ImageObject","inLanguage":"lv","@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#primaryimage","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why-you-php-is-not-worth-it_.png","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why-you-php-is-not-worth-it_.png","width":960,"height":540},{"@type":"BreadcrumbList","@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thecodest.co\/"},{"@type":"ListItem","position":2,"name":"Two Reasons You Should Not Use PHP"}]},{"@type":"WebSite","@id":"https:\/\/thecodest.co\/#website","url":"https:\/\/thecodest.co\/","name":"The Codest","description":"","publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thecodest.co\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"lv"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"lv","@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","width":144,"height":36,"caption":"The Codest"},"image":{"@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/pl.linkedin.com\/company\/codest","https:\/\/clutch.co\/profile\/codest"]},{"@type":"Person","@id":"https:\/\/thecodest.co\/#\/schema\/person\/7e3fe41dfa4f4e41a7baad4c6e0d4f76","name":"thecodest","image":{"@type":"ImageObject","inLanguage":"lv","@id":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","caption":"thecodest"},"url":"https:\/\/thecodest.co\/lv\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/lv\/wp-json\/wp\/v2\/posts\/3780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/lv\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/lv\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/lv\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/lv\/wp-json\/wp\/v2\/comments?post=3780"}],"version-history":[{"count":10,"href":"https:\/\/thecodest.co\/lv\/wp-json\/wp\/v2\/posts\/3780\/revisions"}],"predecessor-version":[{"id":8090,"href":"https:\/\/thecodest.co\/lv\/wp-json\/wp\/v2\/posts\/3780\/revisions\/8090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/lv\/wp-json\/wp\/v2\/media\/3781"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/lv\/wp-json\/wp\/v2\/media?parent=3780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/lv\/wp-json\/wp\/v2\/categories?post=3780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/lv\/wp-json\/wp\/v2\/tags?post=3780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}