Download the PHP package openeuropa/composer-dependent-patches without Composer

On this page you can find all versions of the php package openeuropa/composer-dependent-patches. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package composer-dependent-patches

Composer Dependent Patches

A Composer plugin that extends cweagans/composer-patches version 2 to support version-constrained patches. This plugin allows you to define patches that are only applied when specific version constraints are met, providing fine-grained control over when patches are applied based on package versions.

Features

Installation

Usage

Defining Dependent Patches

Version-constrained patches must be defined under the extra.dependent-patches key in your composer.json. Use the expanded format with version constraints in the extra section:

Version Constraint Syntax

The plugin supports standard Composer version constraint syntax:

Lock File Management

The plugin maintains a dependent-patches.lock.json file that:

Commands

The plugin provides dedicated commands for managing dependent patches:

composer dependent-patches-relock

Regenerates the dependent-patches.lock.json file based on current package versions and defined constraints.

composer dependent-patches-repatch

Removes and reinstalls packages that have dependent patches, ensuring all version-appropriate patches are applied.

How It Works

  1. Resolution: The plugin analyzes installed package versions against defined constraints
  2. Selection: Only patches matching current version constraints are selected for application
  3. Application: Selected patches are applied during package installation
  4. Tracking: Applied patches are tracked in the lock file with package version information
  5. Regeneration: Lock file is automatically regenerated when package versions change

Integration with Regular Patches

This plugin works seamlessly alongside the base cweagans/composer-patches plugin:

Requirements

Development

Testing

The plugin includes automated tests using PHPUnit. To run the tests:

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Ensure all tests pass
  5. Submit a pull request

The project uses GitHub Actions for continuous integration, testing against multiple PHP and Composer versions.


All versions of composer-dependent-patches with dependencies

PHP Build Version
Package Version
Requires composer-plugin-api Version ^2.0
cweagans/composer-patches Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package openeuropa/composer-dependent-patches contains the following files

Loading the files please wait ...