📅  最后修改于: 2023-12-03 15:03:51.854000             🧑  作者: Mango
Prestissimo is a PHP library that allows you to speed up Composer installations by parallelizing them. It utilizes HTTP/2 requests to download multiple packages simultaneously, therefore reducing the total installation time.
To use Prestissimo, you must first install Composer if you haven't already. Once installed, go to the root of your project and run the following command:
composer require hirak/prestissimo
This will install the latest version of Prestissimo.
Prestissimo automatically kick in once it's installed. There is no need to add any extra configuration to your composer.json
file.
You can check the progress of the parallel downloads by adding --verbose
to any Composer command. For example:
composer update --verbose
If, for some reason, you want to disable or configure Prestissimo, add the following to your composer.json
file:
{
"config": {
"prestissimo": {
"disable": true,
"maxConnections": 6
}
}
}
disable
: set to true
to disable Prestissimo.maxConnections
: the maximum number of simultaneous HTTP requests to make. The default is 6.Prestissimo is a simple and efficient way to improve Composer installation times. Try it out on your next project!