{"id":3883,"date":"2022-05-19T11:20:21","date_gmt":"2022-05-19T11:20:21","guid":{"rendered":"http:\/\/the-codest.localhost\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/"},"modified":"2026-04-28T14:07:09","modified_gmt":"2026-04-28T14:07:09","slug":"varfor-behover-vi-symfony-polyfill-och-varfor-borde-vi-inte-gora-det","status":"publish","type":"post","link":"https:\/\/thecodest.co\/sv\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/","title":{"rendered":"Varf\u00f6r beh\u00f6ver vi Symfony Polyfill (... och varf\u00f6r vi inte borde g\u00f6ra det)"},"content":{"rendered":"<p>I de flesta moderna <strong><a href=\"https:\/\/thecodest.co\/sv\/dictionary\/how-to-hire-a-php-developer\/\">PHP<\/a> projekt<\/strong>kommer du att m\u00e4rka att det finns ett stort beroende av <a href=\"https:\/\/github.com\/symfony\/polyfill\" rel=\"nofollow\">Symfony Polyfill<\/a> bibliotek. I den h\u00e4r artikeln f\u00f6rklarar vi inte bara hur det fungerar och hur det f\u00f6rh\u00e5ller sig till <strong>Symfony-projekt<\/strong>men vi kommer ocks\u00e5 att g\u00e5 djupare in p\u00e5 id\u00e9n om det problem som den f\u00f6rs\u00f6ker l\u00f6sa.<\/p>\n<h2>Lite historia<\/h2>\n<p><strong>PHP<\/strong> var i d\u00e5ligt skick under en ganska l\u00e5ng tid. Det var 2005 som Andrei Zmievski startade en <a href=\"https:\/\/thecodest.co\/sv\/dictionary\/why-do-projects-fail\/\">projekt<\/a> f\u00f6r att ge inbyggt Unicode-st\u00f6d f\u00f6r <strong>PHP<\/strong> p\u00e5 grund av blandade recensioner och m\u00e5nga farh\u00e5gor om att <strong>PHP<\/strong> \u00e4r p\u00e5 v\u00e4g \u00e5t fel h\u00e5ll. Utvecklingen av <strong>PHP<\/strong> 6.x p\u00e5b\u00f6rjades. Men det blev aldrig f\u00e4rdigt - och det \u00e4r en historia f\u00f6r en annan dag. 10 \u00e5r senare, n\u00e5gon g\u00e5ng mellan 2014 och 2015, startade Dmitry Stogov, Xinchen Hui och Nikita Popov <code>phpng<\/code> - projekt som optimerade och omarbetade den interna Zend Engine som anv\u00e4nds av <strong>PHP<\/strong>.<\/p>\n<h4>&gt;_ <em>PHP 7 var f\u00f6dd<\/em><\/h4>\n<p>Och f\u00f6r de senaste \u00e5ren, <strong>PHP<\/strong> v\u00e4xer snabbare \u00e4n n\u00e5gonsin och har f\u00f6r n\u00e4rvarande en stabil version 8.1.<\/p>\n<p><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/162561908-025b0d15-1b7a-4592-8f81-05c7b29bc3c9.png\" alt=\"bild\" \/><\/p>\n<p>P\u00e5 grund av den snabba utvecklingen av nya funktioner i spr\u00e5ket var det inte bara utvecklarna som var tvungna att anpassa sig till dessa f\u00f6r\u00e4ndringar, utan \u00e4ven leverant\u00f6rer av infrastruktur och hostingtj\u00e4nster.<\/p>\n<p>F\u00f6r att s\u00e4kerst\u00e4lla att vi utvecklare kan anv\u00e4nda de nyaste och b\u00e4sta funktionerna i v\u00e5rt \u00e4lskade programmeringsspr\u00e5k <strong>Symfony Polyfill<\/strong> projektet var f\u00f6tt.<\/p>\n<h2>Symfony Polyfill och dess funktioner<\/h2>\n<blockquote>\n<p>Detta projekt backporterar funktioner som finns i den senaste <strong>PHP-versioner<\/strong> och tillhandah\u00e5ller kompatibilitetslager f\u00f6r vissa till\u00e4gg och funktioner. Den \u00e4r avsedd att anv\u00e4ndas n\u00e4r portabilitet mellan <strong>PHP-versioner<\/strong> och f\u00f6rl\u00e4ngningar \u00e4r \u00f6nskv\u00e4rt.<\/p>\n<\/blockquote>\n<p>Detta \u00e4r en ren beskrivning av <a href=\"https:\/\/github.com\/symfony\/polyfill\" rel=\"nofollow\">Symfony Polyfill<\/a> men vad betyder det? <\/p>\n<p>P\u00e5 grund av den snabba utvecklingen <strong>PHP spr\u00e5k<\/strong> och ISP:ernas l\u00e5ngsamma anpassning av programvaran har de flesta utvecklare st\u00e4llts inf\u00f6r ett enkelt val:<\/p>\n<ul>\n<li>Som <a href=\"https:\/\/thecodest.co\/sv\/blog\/hire-vue-js-developers\/\">utvecklare<\/a>skapar jag applikationer i en \u00e4ldre version av <strong>PHP<\/strong> och inte kan anv\u00e4nda de senaste funktionerna i spr\u00e5ket, eller<\/li>\n<li>Som utvecklare skapar jag en modern applikation med hj\u00e4lp av den senaste versionen av <strong>PHP<\/strong>.<\/li>\n<\/ul>\n<p>Men de m\u00e5ste ocks\u00e5 vara kompatibla med andra verktyg och tj\u00e4nster som redan anv\u00e4nds b\u00e5de p\u00e5 <a href=\"https:\/\/thecodest.co\/sv\/dictionary\/what-is-code-refactoring\/\">kod<\/a> och infrastruktursidan - n\u00e4stan alltid med hj\u00e4lp av \u00e4ldre versioner av <strong>PHP<\/strong>Beh\u00f6ver jag, k\u00e4ra l\u00e4sare, n\u00e4mna den s\u00e5 kallade \"kulfaktorn\" i dessa tv\u00e5 l\u00f6sningar?<\/p>\n<p>F\u00f6r att underl\u00e4tta f\u00f6r utvecklare skapade Open Source-communityn under 2015 <a href=\"https:\/\/github.com\/symfony\/polyfill\/tree\/v1.0.0\" rel=\"nofollow\">den f\u00f6rsta stabila versionen av Polyfill numrerad 1.0<\/a>. Utvecklarnas liv blev enklare och man kan s\u00e4ga att Symfony Polyfill l\u00f6ste en m\u00e4ngd problem som t.ex. kodportabilitet mellan olika plattformar, <strong>PHP-version<\/strong> skillnader och gjorde det mycket enklare att refaktorisera applikationer och minska teknikskulden.<\/p>\n<p>Tyv\u00e4rr \u00e4r det inte alla problem som kan l\u00f6sas med ett enda verktyg.<\/p>\n<h2>Problem med att uppr\u00e4tth\u00e5lla flera versioner av milj\u00f6n<\/h2>\n<p>F\u00f6r komplexa <strong>IT-projekt<\/strong>Det \u00e4r vanligt att man m\u00e5ste underh\u00e5lla olika versioner av milj\u00f6er f\u00f6r olika kunder\/avdelningar. Detta resulterar i behovet av att utveckla m\u00e5nga olika grenar av applikationer samtidigt, ofta med olika funktionella krav och med sin egen dragkraft. Jag har m\u00e5nga g\u00e5nger m\u00f6tt problemet med att uppr\u00e4tth\u00e5lla samma applikation f\u00f6r olika kunder p\u00e5 olika PHP5 \/ PHP7-milj\u00f6er och m\u00e4ngden problem relaterade till bibliotekens inkompatibilitet eller deras beroenden f\u00f6r olika versioner \u00e4r helt enkelt ol\u00f6sliga med endast <strong>Symfony Polyfill<\/strong>.<\/p>\n<h2>Kompetensgapet mellan medlemmarna i utvecklingsteamet<\/h2>\n<p>P\u00e5 grund av den snabba \u00f6kningen av funktioner som byggs in i <strong>PHP<\/strong>M\u00e5nga utvecklare har inte h\u00e4ngt med i f\u00f6r\u00e4ndringstakten. M\u00e5nga av de funktioner som erbjuds i h\u00f6gre versioner av <strong>PHP<\/strong> \u00e4r l\u00e4tta att \u00e5stadkomma med externa bibliotek, eller s\u00e5 beh\u00f6vde utvecklarna helt enkelt inte de nya funktionerna, t.ex. <a href=\"https:\/\/www.php.net\/manual\/en\/language.fibers.php\" rel=\"nofollow\">PHP-fibrer<\/a>. N\u00e4r du v\u00e4ljer <a href=\"https:\/\/thecodest.co\/sv\/blog\/how-to-hire-the-best-outsourced-development-team-for-a-scaleup\/\">Team<\/a> \u00e4r det en god id\u00e9 att se till att kompetensen matchas eller att kodleveransprocessen g\u00f6rs mer konsekvent med hj\u00e4lp av verktyg f\u00f6r statisk analys och tidig uppt\u00e4ckt av fel i versionsregressionen.<\/p>\n<h2>Motvilja mot f\u00f6r\u00e4ndring<\/h2>\n<p><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/168078028-edd8afe9-04aa-4250-983b-7bdf115bc459.png\" alt=\"bild\" \/><\/p>\n<p>Antagandet av nya spr\u00e5kfunktioner \u00e4r fortfarande ganska l\u00e5gt och <strong>PHP<\/strong> 5:s \u00f6ver 24%-andel visar tydligt att <strong><em>En fj\u00e4rdedel av PHP-projekten k\u00f6r versioner l\u00e4gre \u00e4n 7.x<\/em><\/strong>, vars s\u00e4kerhetsst\u00f6d kommer att avslutas den 6 december 2022. Detta inneb\u00e4r att n\u00e4r detta inl\u00e4gg skrivs kommer \u00f6ver 25% av PHP-baserade <a href=\"https:\/\/thecodest.co\/sv\/blog\/find-your-ideal-stack-for-web-development\/\">Webb<\/a> projekt kommer att vara potentiellt s\u00e5rbara f\u00f6r alla nya s\u00e4kerhetsbrister i slutet av \u00e5ret. \"Om det fungerar, varf\u00f6r ska vi bry oss\"?<\/p>\n<h2>Slutsats<\/h2>\n<p>Vi b\u00f6r anpassa oss till spr\u00e5kf\u00f6r\u00e4ndringar s\u00e5 snabbt som m\u00f6jligt och anv\u00e4nda de senaste l\u00f6sningarna s\u00e5 snart som m\u00f6jligt. Under en eventuell migrering av ett Legacy-projekt \u00e4r det v\u00e4rt att inkludera <strong>Symfony Polyfill<\/strong> som en hj\u00e4lp och anv\u00e4nda tekniker som Strangler Pattern och den f\u00f6r n\u00e4rvarande moderna BDD-metodiken som \u00e4r fantastiskt enkel att till\u00e4mpa p\u00e5 <strong>Symfony-ramverk<\/strong>. S\u00e5 \u00e4r vi verkligen tvungna att anv\u00e4nda <strong>Symfony Polyfill<\/strong>?<\/p>\n<p><a href=\"https:\/\/calendly.com\/the-codest-php\/thecodest-php-tech-consultation\"><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/php_development.png\" alt=\"PHP utveckling fri konsultation\" \/><\/a><\/p>\n<p><strong>L\u00e4s mer om detta:<\/strong><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/php-development-5-things-you-ought-to-know\">PHP Utveckling: 5 saker du b\u00f6r veta<\/a><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/7-startups-that-will-shake-the-marketplace-scene-in-2022\/\">7 startup- och scaleup-f\u00f6retag som kommer att skaka om marknadsplatsen 2022<\/a><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/php-development-symfony-console-component-tips-tricks\">PHP utveckling. Symfony konsolkomponent - tips och tricks<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>I f\u00f6ljande artikel f\u00f6rklarar vi hur Symfony Polyfill fungerar och hur det f\u00f6rh\u00e5ller sig till Symfony-projekt. Vi kommer ocks\u00e5 att dyka djupare in i den id\u00e9 som detta bibliotek f\u00f6rs\u00f6ker l\u00f6sa.<\/p>","protected":false},"author":2,"featured_media":3884,"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-3883","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>Why do we need Symfony Polyfill (... and why we shouldn&#039;t) - The Codest<\/title>\n<meta name=\"description\" content=\"In the following article, we explain how Symfony Polyfill works and how it relates to Symfony projects. We will also dive deeper into the idea that this library tries to solve.\" \/>\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\/sv\/blogg\/varfor-behover-vi-symfony-polyfill-och-varfor-borde-vi-inte-gora-det\/\" \/>\n<meta property=\"og:locale\" content=\"sv_SE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Why do we need Symfony Polyfill (... and why we shouldn&#039;t)\" \/>\n<meta property=\"og:description\" content=\"In the following article, we explain how Symfony Polyfill works and how it relates to Symfony projects. We will also dive deeper into the idea that this library tries to solve.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thecodest.co\/sv\/blogg\/varfor-behover-vi-symfony-polyfill-och-varfor-borde-vi-inte-gora-det\/\" \/>\n<meta property=\"og:site_name\" content=\"The Codest\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-19T11:20:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-28T14:07:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.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=\"5 minuter\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/\"},\"author\":{\"name\":\"thecodest\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/person\\\/7e3fe41dfa4f4e41a7baad4c6e0d4f76\"},\"headline\":\"Why do we need Symfony Polyfill (&#8230; and why we shouldn&#8217;t)\",\"datePublished\":\"2022-05-19T11:20:21+00:00\",\"dateModified\":\"2026-04-28T14:07:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/\"},\"wordCount\":805,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png\",\"articleSection\":[\"Software Development\"],\"inLanguage\":\"sv-SE\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/\",\"name\":\"Why do we need Symfony Polyfill (... and why we shouldn't) - The Codest\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png\",\"datePublished\":\"2022-05-19T11:20:21+00:00\",\"dateModified\":\"2026-04-28T14:07:09+00:00\",\"description\":\"In the following article, we explain how Symfony Polyfill works and how it relates to Symfony projects. We will also dive deeper into the idea that this library tries to solve.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#breadcrumb\"},\"inLanguage\":\"sv-SE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"sv-SE\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#primaryimage\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png\",\"width\":960,\"height\":540},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thecodest.co\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Why do we need Symfony Polyfill (&#8230; and why we shouldn&#8217;t)\"}]},{\"@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\":\"sv-SE\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"sv-SE\",\"@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\":\"sv-SE\",\"@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\\\/sv\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Varf\u00f6r beh\u00f6ver vi Symfony Polyfill (... och varf\u00f6r vi inte borde g\u00f6ra det) - The Codest","description":"I f\u00f6ljande artikel f\u00f6rklarar vi hur Symfony Polyfill fungerar och hur det f\u00f6rh\u00e5ller sig till Symfony-projekt. Vi kommer ocks\u00e5 att dyka djupare in i den id\u00e9 som detta bibliotek f\u00f6rs\u00f6ker l\u00f6sa.","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\/sv\/blogg\/varfor-behover-vi-symfony-polyfill-och-varfor-borde-vi-inte-gora-det\/","og_locale":"sv_SE","og_type":"article","og_title":"Why do we need Symfony Polyfill (... and why we shouldn't)","og_description":"In the following article, we explain how Symfony Polyfill works and how it relates to Symfony projects. We will also dive deeper into the idea that this library tries to solve.","og_url":"https:\/\/thecodest.co\/sv\/blogg\/varfor-behover-vi-symfony-polyfill-och-varfor-borde-vi-inte-gora-det\/","og_site_name":"The Codest","article_published_time":"2022-05-19T11:20:21+00:00","article_modified_time":"2026-04-28T14:07:09+00:00","og_image":[{"width":960,"height":540,"url":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png","type":"image\/png"}],"author":"thecodest","twitter_card":"summary_large_image","twitter_misc":{"Written by":"thecodest","Est. reading time":"5 minuter"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#article","isPartOf":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/"},"author":{"name":"thecodest","@id":"https:\/\/thecodest.co\/#\/schema\/person\/7e3fe41dfa4f4e41a7baad4c6e0d4f76"},"headline":"Why do we need Symfony Polyfill (&#8230; and why we shouldn&#8217;t)","datePublished":"2022-05-19T11:20:21+00:00","dateModified":"2026-04-28T14:07:09+00:00","mainEntityOfPage":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/"},"wordCount":805,"commentCount":0,"publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"image":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#primaryimage"},"thumbnailUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png","articleSection":["Software Development"],"inLanguage":"sv-SE","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/","url":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/","name":"Varf\u00f6r beh\u00f6ver vi Symfony Polyfill (... och varf\u00f6r vi inte borde g\u00f6ra det) - The Codest","isPartOf":{"@id":"https:\/\/thecodest.co\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#primaryimage"},"image":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#primaryimage"},"thumbnailUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png","datePublished":"2022-05-19T11:20:21+00:00","dateModified":"2026-04-28T14:07:09+00:00","description":"I f\u00f6ljande artikel f\u00f6rklarar vi hur Symfony Polyfill fungerar och hur det f\u00f6rh\u00e5ller sig till Symfony-projekt. Vi kommer ocks\u00e5 att dyka djupare in i den id\u00e9 som detta bibliotek f\u00f6rs\u00f6ker l\u00f6sa.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#breadcrumb"},"inLanguage":"sv-SE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/"]}]},{"@type":"ImageObject","inLanguage":"sv-SE","@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#primaryimage","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png","width":960,"height":540},{"@type":"BreadcrumbList","@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thecodest.co\/"},{"@type":"ListItem","position":2,"name":"Why do we need Symfony Polyfill (&#8230; and why we shouldn&#8217;t)"}]},{"@type":"WebSite","@id":"https:\/\/thecodest.co\/#website","url":"https:\/\/thecodest.co\/","name":"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":"sv-SE"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"sv-SE","@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":"sv-SE","@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\/sv\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/posts\/3883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/comments?post=3883"}],"version-history":[{"count":5,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/posts\/3883\/revisions"}],"predecessor-version":[{"id":8142,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/posts\/3883\/revisions\/8142"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/media\/3884"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/media?parent=3883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/categories?post=3883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/tags?post=3883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}