Download the PHP package webship/patches without Composer

On this page you can find all versions of the php package webship/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 patches

Webship Patches

Test patches (11.0.x) Total Downloads

List of needed patches for Webship used packages with Composer Patches.

The 11.0.x branch tests itself: it installs Drupal plus the modules it patches, asserts that Composer Patches applies all of them, and checks that every patch file still exists (tests/).

Composer plugin and curated patch list for Webship. Built on top of cweagans/composer-patches v2 with three additions that v2 dropped or never had:

Plus two Composer commands to convert remote merge-request URLs into local timestamped patch files (./patches/<package>--YYYY-MM-DD--<issue>--mr-<n>.patch).

Quick start

Result: only patches declared by webship/patches (and your project's own extra.patches) apply. Patches declared by other dependencies are skipped — no more aborted installs from stale third-party .patch URLs.

Versions

Branch Drupal core Use with
11.0.x ~11.3.0 Webship ~11.0.0, Drupal 11
10.1.x ~11.3.0 Webship ~10.1.0
10.0.x ~10.6.0 Webship ~10.0.0
9.2.x ~10.6.0 Webship ~9.2.0
9.1.x ~10.6.0 Webship ~9.1.0
no-patches n/a Plugin only, manage your own list

The patches branch carries patch files only — do not require it.

Drupal Core Patches

Drupal core patches are managed in a dedicated package, webship/drupal-patches, so Webship can always track the latest Drupal core release while keeping core patches separate from contrib patches.

webship/patches requires webship/drupal-patches. The core-patches package stores the curated Drupal core patches with one git branch per Drupal core major.minor10.4.x, 10.5.x, 10.6.x, 11.1.x, 11.2.x, 11.3.x, 11.4.x, 12.0.x — plus a flat patches branch that holds the actual .patch files. Each drupal-patches release requires drupal/core ~<minor>.0, so Composer automatically selects the patch set that matches the Drupal core version installed in your project.

On this branch webship/patches requires:

Note: webship/drupal-patches is a metapackage — a storage for Drupal core patches — not a Composer plugin. The only Webship patch plugin is webship/patches. List webship/drupal-patches only under extra.composer-patches.allowed-dependency-patches, and never under config.allow-plugins.

Handling Webship Patches Ignoring

To exclude a specific patch declared by webship/patches (e.g. when you want to replace it with an improved version, or skip it entirely), add a patches-ignore block to your root composer.json:

Schema: { "<source-pkg>": { "<target-pkg>": { "<description>": "<url>" } } }. Matching is done by URL — the description string is informational. A flat array of URLs ({ "<source-pkg>": { "<target-pkg>": ["<url>", ...] } }) is also accepted.

This is the v1-style patches-ignore from cweagans/composer-patches, restored by this plugin on top of v2.

Ignoring Drupal Core Patches

webship/drupal-patches is an ordinary dependency that contributes patches through the dependency resolver, so the same patches-ignore block controls it — use webship/drupal-patches as the source package and drupal/core as the target:

Matching is by URL string, the same as for webship/patches.

Filename convention

Examples:

Fresh builds: commit patches.lock.json

On a fresh, lock-less build (composer create-project, or the first composer require/composer update of a project with no vendor/), Composer installs plugins one at a time inside the same run. cweagans/composer-patches activates first — it is a dependency of this plugin — and resolves the patch collection at the first package event after its own activation, before Webship Patches has been installed. The allow-list cannot run inside that one-shot bootstrap window:

The fix is to commit patches.lock.json to the project template or site repository — it is a lock file and belongs in version control next to composer.lock. When it is present, composer-patches loads it instead of resolving, nothing is downloaded during the window, and Webship Patches re-resolves and rewrites it through the allow-list once active. For a CI job that cannot ship a committed lock, seed a stub before the first Composer command:

or install the plugin globally first (composer global require webship/patches) so it is active from process start. Once the plugin is loaded, the allow-list is enforced on every resolve and the lock file self-heals — patches from packages outside allowed-dependency-patches (default: webship/patches and webship/drupal-patches) never reach patches.lock.json.

Documentation

External: https://github.com/webship/patches/blob/11.0.x/docs/README.md

AI assistant context

The AI-assistant context for this package lives in webship/ai-agents, shared across every Webship repository rather than duplicated in each one. Merge its .claude/ folder into your ~/.claude/ to make the agents and skills available:

Requirements

License

GPL-2.0-or-later. See LICENSE.

Maintainer

Webshiphttps://github.com/webship


All versions of patches with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
composer-plugin-api Version ^2.0
webship/drupal-patches Version ~11 || ~12
composer/installers Version ~2
oomphinc/composer-installers-extender Version ~2
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 webship/patches contains the following files

Loading the files please wait ...