Download the PHP package viosys/composer-download-sleep-plugin without Composer
On this page you can find all versions of the php package viosys/composer-download-sleep-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download viosys/composer-download-sleep-plugin
More information about viosys/composer-download-sleep-plugin
Files in viosys/composer-download-sleep-plugin
Download viosys/composer-download-sleep-plugin
More information about viosys/composer-download-sleep-plugin
Files in viosys/composer-download-sleep-plugin
Vendor viosys
Package composer-download-sleep-plugin
Short Description Composer plugin to sleep for a given amount of seconds before downloading a file
License MIT
Package composer-download-sleep-plugin
Short Description Composer plugin to sleep for a given amount of seconds before downloading a file
License MIT
Please rate this library. Is it a good library?
Informations about the package composer-download-sleep-plugin
Composer Download Sleep Plugin
This plugin will sleep for a given amount of seconds before downloading a file. Purpose is to avoid hitting the rate limit of the provider.
Installation
- Requirements: PHP ^8.2 and Composer 2.x
- Install the plugin in your project:
- Globally:
composer global require viosys/composer-download-sleep-plugin - Per project:
composer require viosys/composer-download-sleep-plugin --dev
- Globally:
- Composer will automatically activate the plugin (type: composer-plugin).
Configuration
| Name | Type | Default | Description |
|---|---|---|---|
| duration | integer | 1 | Number of seconds to sleep before each download |
| urlsToApply | array | [] | List of URLs to apply the sleep delay to. Only downloads from these URLs will be delayed. The download URL has to start with one of the given URLs. |
Development
- Static analysis: install dev dependencies and run PHPStan
- Install:
composer install - Run:
composer phpstan - Strict:
composer phpstan:strict
- Install:
PHPStan is configured via phpstan.neon.dist at level 8 analyzing the src directory.
All versions of composer-download-sleep-plugin with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
composer-plugin-api Version ^2.0
composer-plugin-api Version ^2.0
The package viosys/composer-download-sleep-plugin contains the following files
Loading the files please wait ...