Composer 2.0 Compatibility
Upgrading
Documentation
- Quick Start Guide
- Private Networks and Firewalls
- Using Private Packagist in a Composer project
- API Documentation
- Security Monitoring
- Update Review
- Synchronization FAQ
- Composer Authentication
- Centralized Authentication and SSO
- Cloud Changelog
Features
- Private Composer Packages
- Mirroring Composer Packages
- GitHub, Bitbucket, GitLab and Other Integrations
- Security Monitoring
- Update Review
- Dependency License Review
- Suborganization Setup
- Vendors: Customer Setup
Articles
Private Packagist Self-Hosted
- Self-Hosted Installation
- Maintenance
- Troubleshooting Guide
- Integration Setup
- Replicated Native (deprecated)
- Self-Hosted Changelog
Private Packagist is fully compatible with both Composer versions 1 and 2, you do not need to make any changes to your Private Packagist configuration when upgrading to Composer 2.0.
In order to upgrade to a current preview release of Composer 2.0 you need to run the following command:
composer.phar self-update --2
If you want to switch back to version 1 you can either use composer self-update --rollback
right afterwards or composer self-update --1
at any any later point.
Improvements
Composer 2.0 has significantly improved performance and memory usage. It ships with parallelized downloads of metadata and distribution files and makes use of HTTP/2 features for more efficient server communication.
Private Packagist Composer repositories fully support all new Composer 2 network protocol improvements, including HTTP/2, an improved compression algorithm to reduce the amount of required bandwidth and new API endpoints to provide better error messages.
Resources
- Composer 2.0 Upgrade Guide https://github.com/composer/composer/blob/master/UPGRADE-2.0.md
- Composer Changelog https://github.com/composer/composer/blob/master/CHANGELOG.md
- Composer 2 Development Update from April 24, 2020 https://blog.packagist.com/composer-2-development-update/
Start Free Trial
Login to create an organization and start your free trial!