{"id":147,"date":"2021-06-05T10:33:12","date_gmt":"2021-06-05T10:33:12","guid":{"rendered":"http:\/\/thekraftors.com\/blog\/?p=147"},"modified":"2021-06-05T10:36:16","modified_gmt":"2021-06-05T10:36:16","slug":"faster-composer-comes-to-magento-2","status":"publish","type":"post","link":"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/","title":{"rendered":"Faster Composer comes to Magento 2"},"content":{"rendered":"\n<p>One of the more exciting improvements included in&nbsp;<a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/release-notes\/open-source-2-4-2.html\">Magento 2.4.2<\/a>&nbsp;is the support of Composer 2.0. In our tests, this brought a substantial speed increase and less memory usage to Composer commands run against your Magento project code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do you benefit from this?<\/h3>\n\n\n\n<p>Once you are ready to use Magento 2.4.2 check if you are already using Composer 2.0 by running&nbsp;<code>composer --version<\/code>. If you are still on the 1.x release you might see something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/fooman.com\/blog\/user\/pages\/posts\/composer-2-0-comes-to-magento-2-4-2\/Composer-1.x.png\" alt=\"Still on Composer 1.x\"\/><\/figure>\n\n\n\n<p>First update to the latest 1.x version with&nbsp;<code>composer self-update<\/code>&nbsp;followed by&nbsp;<code>composer self-update --2<\/code>&nbsp;to get to Composer 2.x (2.0.9 at the time of writing).<\/p>\n\n\n\n<p>If you have used the excellent plugin hirak\/prestissimo to bring parallel downloads to Composer now would also be the time to remove it if you had it installed globally. It is no longer required as Composer now supports this out of the box.&nbsp;<code>composer global remove hirak\/prestissimo<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">It&#8217;s fast<\/h3>\n\n\n\n<p>In particular in a Docker for Mac environment have I seen a dramatic overall performance increase. While I don&#8217;t have any exact timings, overall it went from painfully slow to easy to work with.<img decoding=\"async\" alt=\"Extension installed in 8 seconds\" src=\"https:\/\/fooman.com\/blog\/user\/pages\/posts\/composer-2-0-comes-to-magento-2-4-2\/Composer-20-require-fooman-extension.png\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the more exciting improvements included in&nbsp;Magento 2.4.2&nbsp;is the support of Composer 2.0. In our tests, this brought a substantial speed increase and less memory usage to Composer commands&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-147","post","type-post","status-publish","format-standard","hentry","category-magento-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Faster Composer comes to Magento 2 - The Kraftors<\/title>\n<meta name=\"description\" content=\"One of the more exciting improvements included in Magento 2.4.2 is the support of Composer 2.0.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Faster Composer comes to Magento 2 - The Kraftors\" \/>\n<meta property=\"og:description\" content=\"One of the more exciting improvements included in Magento 2.4.2 is the support of Composer 2.0.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"The Kraftors\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/thekraftors\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/thekraftors\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-05T10:33:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-05T10:36:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fooman.com\/blog\/user\/pages\/posts\/composer-2-0-comes-to-magento-2-4-2\/Composer-1.x.png\" \/>\n<meta name=\"author\" content=\"Kraftors Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@the_kraftors\" \/>\n<meta name=\"twitter:site\" content=\"@the_kraftors\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kraftors Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/\",\"url\":\"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/\",\"name\":\"Faster Composer comes to Magento 2 - The Kraftors\",\"isPartOf\":{\"@id\":\"https:\/\/thekraftors.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fooman.com\/blog\/user\/pages\/posts\/composer-2-0-comes-to-magento-2-4-2\/Composer-1.x.png\",\"datePublished\":\"2021-06-05T10:33:12+00:00\",\"dateModified\":\"2021-06-05T10:36:16+00:00\",\"author\":{\"@id\":\"https:\/\/thekraftors.com\/blog\/#\/schema\/person\/df365c3dc0480599d26a96c6969916d0\"},\"description\":\"One of the more exciting improvements included in Magento 2.4.2 is the support of Composer 2.0.\",\"breadcrumb\":{\"@id\":\"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/#primaryimage\",\"url\":\"https:\/\/fooman.com\/blog\/user\/pages\/posts\/composer-2-0-comes-to-magento-2-4-2\/Composer-1.x.png\",\"contentUrl\":\"https:\/\/fooman.com\/blog\/user\/pages\/posts\/composer-2-0-comes-to-magento-2-4-2\/Composer-1.x.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/thekraftors.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Faster Composer comes to Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/thekraftors.com\/blog\/#website\",\"url\":\"https:\/\/thekraftors.com\/blog\/\",\"name\":\"The Kraftors\",\"description\":\"AI | AR | eCommerce | Devops | Magento | Flutter\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/thekraftors.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/thekraftors.com\/blog\/#\/schema\/person\/df365c3dc0480599d26a96c6969916d0\",\"name\":\"Kraftors Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/thekraftors.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4f2f688e3509fd8078a6d7d68b748268f9e105fb8b8265685b14254ca45f2448?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4f2f688e3509fd8078a6d7d68b748268f9e105fb8b8265685b14254ca45f2448?s=96&d=mm&r=g\",\"caption\":\"Kraftors Team\"},\"description\":\"At Kraftors, we offer IT Services related to development in E-Commerce Development , AI \/ ML Development, AR\/VR Development, Mobile Application Development, DevOps \/ MLOps, and Custom Development\",\"sameAs\":[\"http:\/\/thekraftors.com\/blog\",\"https:\/\/www.facebook.com\/thekraftors\/\",\"https:\/\/www.instagram.com\/the_kraftors\/\",\"https:\/\/www.linkedin.com\/company\/kraftors-web-solutions-pvt.-ltd.\",\"https:\/\/x.com\/the_kraftors\",\"https:\/\/www.youtube.com\/@kraftorswebsolutions7410\"],\"url\":\"https:\/\/thekraftors.com\/blog\/author\/kraftors_admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Faster Composer comes to Magento 2 - The Kraftors","description":"One of the more exciting improvements included in Magento 2.4.2 is the support of Composer 2.0.","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:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"Faster Composer comes to Magento 2 - The Kraftors","og_description":"One of the more exciting improvements included in Magento 2.4.2 is the support of Composer 2.0.","og_url":"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/","og_site_name":"The Kraftors","article_publisher":"https:\/\/www.facebook.com\/thekraftors\/","article_author":"https:\/\/www.facebook.com\/thekraftors\/","article_published_time":"2021-06-05T10:33:12+00:00","article_modified_time":"2021-06-05T10:36:16+00:00","og_image":[{"url":"https:\/\/fooman.com\/blog\/user\/pages\/posts\/composer-2-0-comes-to-magento-2-4-2\/Composer-1.x.png"}],"author":"Kraftors Team","twitter_card":"summary_large_image","twitter_creator":"@the_kraftors","twitter_site":"@the_kraftors","twitter_misc":{"Written by":"Kraftors Team","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/","url":"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/","name":"Faster Composer comes to Magento 2 - The Kraftors","isPartOf":{"@id":"https:\/\/thekraftors.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/fooman.com\/blog\/user\/pages\/posts\/composer-2-0-comes-to-magento-2-4-2\/Composer-1.x.png","datePublished":"2021-06-05T10:33:12+00:00","dateModified":"2021-06-05T10:36:16+00:00","author":{"@id":"https:\/\/thekraftors.com\/blog\/#\/schema\/person\/df365c3dc0480599d26a96c6969916d0"},"description":"One of the more exciting improvements included in Magento 2.4.2 is the support of Composer 2.0.","breadcrumb":{"@id":"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/#primaryimage","url":"https:\/\/fooman.com\/blog\/user\/pages\/posts\/composer-2-0-comes-to-magento-2-4-2\/Composer-1.x.png","contentUrl":"https:\/\/fooman.com\/blog\/user\/pages\/posts\/composer-2-0-comes-to-magento-2-4-2\/Composer-1.x.png"},{"@type":"BreadcrumbList","@id":"https:\/\/thekraftors.com\/blog\/faster-composer-comes-to-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thekraftors.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Faster Composer comes to Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/thekraftors.com\/blog\/#website","url":"https:\/\/thekraftors.com\/blog\/","name":"The Kraftors","description":"AI | AR | eCommerce | Devops | Magento | Flutter","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thekraftors.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/thekraftors.com\/blog\/#\/schema\/person\/df365c3dc0480599d26a96c6969916d0","name":"Kraftors Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thekraftors.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4f2f688e3509fd8078a6d7d68b748268f9e105fb8b8265685b14254ca45f2448?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4f2f688e3509fd8078a6d7d68b748268f9e105fb8b8265685b14254ca45f2448?s=96&d=mm&r=g","caption":"Kraftors Team"},"description":"At Kraftors, we offer IT Services related to development in E-Commerce Development , AI \/ ML Development, AR\/VR Development, Mobile Application Development, DevOps \/ MLOps, and Custom Development","sameAs":["http:\/\/thekraftors.com\/blog","https:\/\/www.facebook.com\/thekraftors\/","https:\/\/www.instagram.com\/the_kraftors\/","https:\/\/www.linkedin.com\/company\/kraftors-web-solutions-pvt.-ltd.","https:\/\/x.com\/the_kraftors","https:\/\/www.youtube.com\/@kraftorswebsolutions7410"],"url":"https:\/\/thekraftors.com\/blog\/author\/kraftors_admin\/"}]}},"_links":{"self":[{"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":1,"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":148,"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/posts\/147\/revisions\/148"}],"wp:attachment":[{"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}