Download the PHP package cotonet/soak-time without Composer
On this page you can find all versions of the php package cotonet/soak-time. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cotonet/soak-time
More information about cotonet/soak-time
Files in cotonet/soak-time
Package soak-time
Short Description Protects against supply chain attacks by filtering recently published packages.
License
Informations about the package soak-time
Cotonet Soak Time 🛡️
A Composer plugin designed to mitigate Supply Chain Attacks by enforcing a "soak time" (minimum age) on all installed package versions.
Recently published packages or updates can sometimes carry malicious code (zero-days or compromised maintainer accounts). This plugin acts as a shield by completely hiding recent releases from the Composer solver, ensuring you only install mature, community-vetted code.
💡 How it works
This plugin intercepts Composer's PRE_POOL_CREATE event. It analyzes the release dates of all requested packages (including deep transitive dependencies) and drops any version that is newer than your configured threshold.
Composer will then gracefully resolve your dependencies using older, safer versions, avoiding the "dependency hell" of manual conflict resolution.
📦 Installation
Install this plugin as a development dependency:
Or install it globally to protect all your local projects:
⚙️ Configuration
By default, the plugin enforces a minimum age of 168 hours (7 days).
Customize this in the extra section of your project's composer.json:
Whitelisting Packages
Some packages, like security advisories or internal company packages, need to be updated constantly and should bypass the soak time filter. You can allow them permanently by adding an array of package names to soak-time-whitelist in your composer.json:
🚨 Emergency Bypass (Security Patches)
If you need to install a critical security patch that was released just a few hours ago, you can bypass the filter using the SOAK_TIME_SKIP environment variable:
Linux / macOS:
Windows (PowerShell):
🔍 Debugging
To see which versions are being dropped, run Composer with the verbose flag (-v):
📄 License
This project is licensed under the MIT License.
All versions of soak-time with dependencies
composer-plugin-api Version ^2.0