Today Composer released v2.0 with many changes and performance improvements:
We overhauled pretty much everything from the protocol used between Composer and packagist.org to the dependency resolution, including downloading files in parallel using curl and constraint evaluation optimizations. This leads to massive improvements in terms of both speed and memory usage. The difference depends on your use case, so while I’ve seen reports of improvements of over 50% to both in some projects, I cannot put an exact number on it. But I am sure you will be positively surprised if you haven’t tried Composer 2 yet.
I updated my local Composer version to the beta version last week and can confirm it feels much faster than v1 and uses less memory. Updating is also easy and here is the instructions they outline:
Filed in: News
If you run
composer self-updatefrom 1.x, it will warn you that a new stable major version of Composer is available, and you can use
composer self-update --2to migrate to it.
Should you encounter issues, you can go back at any time by using composer
self-update --1. Hopefully that will make everyone feel comfortable to experiment with the new release.
Join 31,000+ others and never miss out on new tips, tutorials, and more.
- Senior Full Stack PHP Developer (Laravel)
- Senior Laravel Developer
- Senior Full-Stack Engineer
[REMOTE: USA Only]
- Developers for B2B eCommerce SaaS, AWS serverless, Laravel, Vue, Python
Remote, full time EU only
ES Tech Group
- Senior PHP Developer (Laravel)
The Interaction Design Foundation
Three reasons to attend Sqreen Summit 2020 (sponsor)
Sqreen Summit 2020 is happening on October 29th. Running from 8am-9:30am PDT, this free virtual event is all about ap…
Reminder: Update your Laravel Installer
At the end of this month, the old Laravel Installer will stop working as the old installer servers will be taken offl…