Download the PHP package mlocati/composer-patcher without Composer

On this page you can find all versions of the php package mlocati/composer-patcher. 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-patcher

Build Status

composer-patcher

Simple patches plugin for Composer. Applies a patch from a local or remote file to any package required with Composer.

Usage

Example composer.json:

If you use the patches-file configuration key, it must be a local or remote JSON file with this syntax:

Allowing patches to be applied from dependencies

You can use the allow-subpatches to let dependency packages install patches. It can be:

Using patches from HTTP URLs

Composer blocks you from downloading anything from HTTP URLs, you can disable this for your project by adding a secure-http setting in the config section of your composer.json. Note that the config section should be under the root of your composer.json.

However, it's always advised to setup HTTPS to prevent MITM code injection.

Patch levels

In order to specify the level of a patch, you can use the extended form of the patch path. For example, if the patch level for a patch should be -p4, you can replace

with

It can be:

Target packages

You can specify the package versions a patch should be applied to. To do so, simply specify the version in the package handle:

You can use the Composer syntax to specify the applicable version(s).

Patches containing modifications to composer.json files

Because patching occurs after Composer calculates dependencies and installs packages, changes to an underlying dependency's composer.json file introduced in a patch will have no effect on installed packages.

If you need to modify a dependency's composer.json or its underlying dependencies, you cannot use this plugin. Instead, you must do one of the following:

Error handling

You can use the extra.patch-errors-as-warnings configuration option to instruct composer-patcher what to do in case of errors. It can be:

Credits

A ton of this code is adapted or taken straight from cweagans/composer-patcher.

Do you really want to say thank you?

You can offer me a monthly coffee or a one-time coffee :wink:


All versions of composer-patcher with dependencies

PHP Build Version
Package Version
Requires composer-plugin-api Version ^1.1 || ^2
php Version >= 5.3.2
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 mlocati/composer-patcher contains the following files

Loading the files please wait ....