cweagans/composer-patches
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
cweagans/composer-configurable-plugin | 2.0.0 | 54.46 kB | BSD-3-Clause | prod |
The cweagans/composer-patches is a simple yet powerful tool designed for Composer. Its primary function is to apply patches to any dependency installed by Composer from a local or remote file. This functionality allows developers to modify the behavior of integrated packages without changing the package code directly. It's an excellent tool for maintaining package compatibility while implementing custom changes required for specific project needs.
To use cweagans/composer-patches, it needs to be included in your project. You can do this by adding it as a dependency using Composer's require command. Run the following command in your terminal:
composer require cweagans/composer-patches
Once installed, you can start applying patches. These patches should be defined in your composer.json file. Here's an example:
"extra": {
"patches": {
"vendor/package": {
"Patch description": "https://url/to/patch.patch"
}
}
}
In this example, a patch is applied to vendor/package
. The patch file can be hosted anywhere accessible.
You can find the comprehensive documentation on using cweagans/composer-patches on their official documentation page. Visit https://docs.cweagans.net/composer-patches to learn more about its installation, configuration and use. It includes detailed instructions and examples to get you started, making it an excellent resource for both beginners and experienced developers alike. If you encounter any issues or have discussion topics, you can visit their GitHub Issues and Discussions pages at https://github.com/cweagans/composer-patches/issues and https://github.com/cweagans/composer-patches/discussions respectively.