{"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":"porque-e-que-precisamos-do-symfony-polyfill-e-porque-e-que-nao-o-devemos-fazer","status":"publish","type":"post","link":"https:\/\/thecodest.co\/pt\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/","title":{"rendered":"Porque \u00e9 que precisamos do Symfony Polyfill (... e porque \u00e9 que n\u00e3o devemos)"},"content":{"rendered":"<p>Na maioria dos modernos <strong><a href=\"https:\/\/thecodest.co\/pt\/dictionary\/how-to-hire-a-php-developer\/\">PHP<\/a> projectos<\/strong>, notar\u00e1 uma forte depend\u00eancia do <a href=\"https:\/\/github.com\/symfony\/polyfill\" rel=\"nofollow\">Symfony Polyfill<\/a> biblioteca. Neste artigo, explicaremos n\u00e3o s\u00f3 como funciona e como se relaciona com <strong>Projectos Symfony<\/strong>mas tamb\u00e9m vamos aprofundar a ideia do problema que tenta resolver.<\/p>\n<h2>Um pouco de hist\u00f3ria<\/h2>\n<p><strong>PHP<\/strong> esteve em mau estado durante muito tempo. Foi em 2005 que Andrei Zmievski iniciou um projeto de <a href=\"https:\/\/thecodest.co\/pt\/dictionary\/why-do-projects-fail\/\">projeto<\/a> para oferecer suporte Unicode nativo para <strong>PHP<\/strong> devido a cr\u00edticas mistas e muitas preocupa\u00e7\u00f5es de que <strong>PHP<\/strong> est\u00e1 a seguir o caminho errado. Desenvolvimento de <strong>PHP<\/strong> 6.x come\u00e7ou. Mas nunca foi terminado - e essa \u00e9 uma hist\u00f3ria para outro dia. 10 anos depois, algures entre 2014 e 2015, Dmitry Stogov, Xinchen Hui e Nikita Popov come\u00e7aram o <code>phpng<\/code> - projeto que otimizou e refatorou o Zend Engine interno usado pelo <strong>PHP<\/strong>.<\/p>\n<h4>&gt;_ <em>Nasceu o PHP 7<\/em><\/h4>\n<p>E nos \u00faltimos anos, <strong>PHP<\/strong> est\u00e1 a crescer mais depressa do que nunca, encontrando-se atualmente na vers\u00e3o est\u00e1vel 8.1.<\/p>\n<p><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/162561908-025b0d15-1b7a-4592-8f81-05c7b29bc3c9.png\" alt=\"imagem\" \/><\/p>\n<p>Devido ao r\u00e1pido desenvolvimento de novas funcionalidades na linguagem, n\u00e3o s\u00f3 os programadores tiveram de se adaptar a essas altera\u00e7\u00f5es, como tamb\u00e9m as infra-estruturas e os fornecedores de servi\u00e7os de alojamento.<\/p>\n<p>Para garantir que n\u00f3s, programadores, possamos utilizar as melhores e mais recentes funcionalidades da nossa querida linguagem de programa\u00e7\u00e3o <strong>Symfony Polyfill<\/strong> nasceu o projeto.<\/p>\n<h2>Symfony Polyfill e a sua fun\u00e7\u00e3o<\/h2>\n<blockquote>\n<p>Este projeto suporta funcionalidades encontradas na \u00faltima vers\u00e3o do <strong>Vers\u00f5es PHP<\/strong> e fornece camadas de compatibilidade para algumas extens\u00f5es e fun\u00e7\u00f5es. Destina-se a ser utilizado quando a portabilidade entre <strong>Vers\u00f5es PHP<\/strong> e extens\u00f5es.<\/p>\n<\/blockquote>\n<p>Esta \u00e9 uma descri\u00e7\u00e3o pura de <a href=\"https:\/\/github.com\/symfony\/polyfill\" rel=\"nofollow\">Symfony Polyfill<\/a> mas o que \u00e9 que isso significa? <\/p>\n<p>Devido \u00e0 r\u00e1pida evolu\u00e7\u00e3o da <strong>L\u00edngua PHP<\/strong> e a personaliza\u00e7\u00e3o de software fora de controlo dos ISPs, a maioria dos programadores viu-se confrontada com uma escolha simples:<\/p>\n<ul>\n<li>Como <a href=\"https:\/\/thecodest.co\/pt\/blog\/hire-vue-js-developers\/\">criador<\/a>Se eu criar aplica\u00e7\u00f5es numa vers\u00e3o mais antiga do <strong>PHP<\/strong> e n\u00e3o pode utilizar as carater\u00edsticas mais recentes da l\u00edngua, ou<\/li>\n<li>Como programador, crio uma aplica\u00e7\u00e3o moderna utilizando a vers\u00e3o mais recente do <strong>PHP<\/strong>.<\/li>\n<\/ul>\n<p>Mas tinham de manter a compatibilidade com outras ferramentas e servi\u00e7os j\u00e1 utilizados tanto no <a href=\"https:\/\/thecodest.co\/pt\/dictionary\/what-is-code-refactoring\/\">c\u00f3digo<\/a> e de infra-estruturas - quase sempre utilizando vers\u00f5es mais antigas do <strong>PHP<\/strong>Ser\u00e1 necess\u00e1rio mencionar, caro leitor, o chamado \"fator divers\u00e3o\" destas duas solu\u00e7\u00f5es?<\/p>\n<p>Para facilitar o trabalho dos programadores, a comunidade de c\u00f3digo aberto criou em 2015 <a href=\"https:\/\/github.com\/symfony\/polyfill\/tree\/v1.0.0\" rel=\"nofollow\">a primeira vers\u00e3o est\u00e1vel do Polyfill numerada 1.0<\/a>. A vida dos programadores tornou-se mais f\u00e1cil e pode dizer-se que o Symfony Polyfill resolveu uma s\u00e9rie de problemas, como a portabilidade do c\u00f3digo entre diferentes plataformas, <strong>Vers\u00e3o PHP<\/strong> e tornou muito mais f\u00e1cil a refac\u00e7\u00e3o de aplica\u00e7\u00f5es e a redu\u00e7\u00e3o da d\u00edvida tecnol\u00f3gica.<\/p>\n<p>Infelizmente, nem todos os problemas podem ser resolvidos com uma \u00fanica ferramenta.<\/p>\n<h2>Problemas associados \u00e0 manuten\u00e7\u00e3o de v\u00e1rias vers\u00f5es do ambiente<\/h2>\n<p>Para os complexos <strong>Projectos de TI<\/strong>Na atualidade, a manuten\u00e7\u00e3o de diferentes vers\u00f5es de ambientes para diferentes clientes\/filiais\/departamentos \u00e9 um procedimento comum. Isto resulta na necessidade de desenvolver muitos ramos diferentes de aplica\u00e7\u00f5es ao mesmo tempo, muitas vezes com requisitos funcionais diferentes e com a sua pr\u00f3pria tra\u00e7\u00e3o. J\u00e1 me deparei muitas vezes com o problema de manter a mesma aplica\u00e7\u00e3o para diferentes clientes em diferentes ambientes PHP5 \/ PHP7 e a multiplicidade de problemas relacionados com a incompatibilidade de bibliotecas ou suas depend\u00eancias para diferentes vers\u00f5es \u00e9 simplesmente insol\u00favel utilizando apenas <strong>Symfony Polyfill<\/strong>.<\/p>\n<h2>A diferen\u00e7a de compet\u00eancias entre os membros da equipa de desenvolvimento<\/h2>\n<p>Devido ao r\u00e1pido crescimento das funcionalidades incorporadas no <strong>PHP<\/strong>No entanto, muitos programadores n\u00e3o acompanharam o ritmo da mudan\u00e7a. Muitas das funcionalidades oferecidas nas vers\u00f5es superiores do <strong>PHP<\/strong> s\u00e3o f\u00e1ceis de obter com bibliotecas externas, ou os programadores simplesmente n\u00e3o precisavam das novas funcionalidades, tais como <a href=\"https:\/\/www.php.net\/manual\/en\/language.fibers.php\" rel=\"nofollow\">Fibras PHP<\/a>. Ao selecionar <a href=\"https:\/\/thecodest.co\/pt\/blog\/how-to-hire-the-best-outsourced-development-team-for-a-scaleup\/\">equipa<\/a> membros, \u00e9 uma boa ideia certificar-se de que as compet\u00eancias s\u00e3o compat\u00edveis ou que o processo de entrega de c\u00f3digo \u00e9 mais consistente atrav\u00e9s de ferramentas de an\u00e1lise est\u00e1tica e da dete\u00e7\u00e3o precoce de erros de regress\u00e3o de vers\u00e3o.<\/p>\n<h2>Relut\u00e2ncia em mudar<\/h2>\n<p><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/168078028-edd8afe9-04aa-4250-983b-7bdf115bc459.png\" alt=\"imagem\" \/><\/p>\n<p>A ado\u00e7\u00e3o de novas carater\u00edsticas lingu\u00edsticas \u00e9 ainda bastante reduzida e <strong>PHP<\/strong> 5 sobre a quota de 24% mostra claramente que <strong><em>um quarto dos projectos PHP est\u00e3o a executar vers\u00f5es inferiores a 7.x<\/em><\/strong>que ter\u00e1 seu suporte de seguran\u00e7a encerrado em 6 de dezembro de 2022. Isso significa que, no momento em que este post foi escrito, mais de 25% de PHP-based <a href=\"https:\/\/thecodest.co\/pt\/blog\/find-your-ideal-stack-for-web-development\/\">Web<\/a> os projectos estar\u00e3o potencialmente vulner\u00e1veis a todas as novas vulnerabilidades de seguran\u00e7a at\u00e9 ao final do ano. \"Se funciona, porque \u00e9 que nos havemos de incomodar?<\/p>\n<h2>Conclus\u00e3o<\/h2>\n<p>Devemos adaptar-nos \u00e0s altera\u00e7\u00f5es lingu\u00edsticas o mais rapidamente poss\u00edvel e utilizar as solu\u00e7\u00f5es mais recentes o mais rapidamente poss\u00edvel. Durante uma poss\u00edvel migra\u00e7\u00e3o de um projeto legado, vale a pena incluir <strong>Symfony Polyfill<\/strong> como auxiliar e utilizando t\u00e9cnicas como o Strangler Pattern e a metodologia BDD atualmente em voga, que \u00e9 fabulosamente f\u00e1cil de aplicar ao <strong>Estrutura Symfony<\/strong>. Ent\u00e3o, somos mesmo obrigados a utilizar <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 desenvolvimento consultoria gratuita\" \/><\/a><\/p>\n<p><strong>Ler mais:<\/strong><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/php-development-5-things-you-ought-to-know\">Desenvolvimento do PHP: 5 coisas que voc\u00ea deve saber<\/a><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/7-startups-that-will-shake-the-marketplace-scene-in-2022\/\">7 Startups e Scaleups que v\u00e3o abalar o cen\u00e1rio do mercado em 2022<\/a><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/php-development-symfony-console-component-tips-tricks\">Desenvolvimento PHP. Componente de Consola Symfony - Dicas e Truques<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>No artigo seguinte, explicamos como o Symfony Polyfill funciona e como se relaciona com os projectos Symfony. Tamb\u00e9m iremos aprofundar a ideia que esta biblioteca tenta resolver.<\/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\/pt\/blogue\/porque-e-que-precisamos-do-symfony-polyfill-e-porque-e-que-nao-o-devemos-fazer\/\" \/>\n<meta property=\"og:locale\" content=\"pt_PT\" \/>\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\/pt\/blogue\/porque-e-que-precisamos-do-symfony-polyfill-e-porque-e-que-nao-o-devemos-fazer\/\" \/>\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 minutos\" \/>\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\":\"pt-PT\",\"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\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@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\":\"pt-PT\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@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\":\"pt-PT\",\"@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\\\/pt\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Porque \u00e9 que precisamos do Symfony Polyfill (... e porque \u00e9 que n\u00e3o devemos) - The Codest","description":"No artigo seguinte, explicamos como o Symfony Polyfill funciona e como se relaciona com os projectos Symfony. Tamb\u00e9m iremos aprofundar a ideia que esta biblioteca tenta resolver.","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\/pt\/blogue\/porque-e-que-precisamos-do-symfony-polyfill-e-porque-e-que-nao-o-devemos-fazer\/","og_locale":"pt_PT","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\/pt\/blogue\/porque-e-que-precisamos-do-symfony-polyfill-e-porque-e-que-nao-o-devemos-fazer\/","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 minutos"},"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":"pt-PT","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":"Porque \u00e9 que precisamos do Symfony Polyfill (... e porque \u00e9 que n\u00e3o devemos) - 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":"No artigo seguinte, explicamos como o Symfony Polyfill funciona e como se relaciona com os projectos Symfony. Tamb\u00e9m iremos aprofundar a ideia que esta biblioteca tenta resolver.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#breadcrumb"},"inLanguage":"pt-PT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/"]}]},{"@type":"ImageObject","inLanguage":"pt-PT","@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":"pt-PT"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"pt-PT","@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":"pt-PT","@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\/pt\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/posts\/3883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/comments?post=3883"}],"version-history":[{"count":5,"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/posts\/3883\/revisions"}],"predecessor-version":[{"id":8142,"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/posts\/3883\/revisions\/8142"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/media\/3884"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/media?parent=3883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/categories?post=3883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/pt\/wp-json\/wp\/v2\/tags?post=3883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}