Download the PHP package digitalpolygon/drupal-upgrade-plugin without Composer

On this page you can find all versions of the php package digitalpolygon/drupal-upgrade-plugin. 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 drupal-upgrade-plugin

Drupal Core Composer Updater Plugin

What problem does this plugin actually solve?

It removes, or greatly eases, the "Composer dependency hell" phase of upgrading Drupal core. With this plugin, you can run a command that effectively says "This is the version of Drupal core I want to upgrade to, do whatever you need to get me there."

What does this plugin do?

It provides commands for helping you upgrade Drupal core. It manipulates Composer and effectively wraps composer update ....

By default, when updating, the following flags are passed to the update command:

Scripts and plugins are disabled by default in order to avoid interference from other scripts that might otherwise cause the update process to fail (such as Composer patches failing to apply a patch to a new version of a package).

Preferred package versions are their lowest by default. This is done to help minimize validation of other modules that must be updated in order to get to the targeted version of core (i.e. the lowest compatible version of a module will likely have fewer changes compared to higher versions, thus reducing the amount of functionality you need to verify with the new module version).

--ignore-platform-reqs can also be configured to pass to the core update command, but this is disabled by default as to ensure platform compatibility remains (doesn't make sense to upgrade to a version of a module the requires PHP 8.3 if your running PHP 8.2). In the future, the update command may default to ignoring platform requirements, as that removes an additional barrier to updating packages purley based on semantic versioning compatibility.

See the configuration section below for more details.

Again, the goal is to improve the chances of successfully updating to the targeted version of core with the least amount of manual intervention possible, which this default configuration helps with the most.

Features

Installation

To install the Drupal Core Composer Updater Plugin, follow these steps:

  1. Require the package:

  2. Create the manifest file: <composer root>/drupal_manifest/composer.json with all of your Drupal packages (except dev, those must be kept in the root composer.json). You can change 'project/' to your project name and alter version as your project grows.

    Example:

  3. Add the following to your <composer root>/composer.json repositories section:

  4. Require the project pacakge you just created:

  5. Run composer update --lock.

Going forward, add Drupal packages to the manifest file.

Managing requirements in the manifest

Typically when you add new packages, you use composer require ... which will update composer.json in your project directory. If you are requiring packages that are not related to Drupal, this is fine, but if you are requiring a Drupal package then it is highly recommended that this goes in the manifest file. There are two methods for doing this:

Modify requirements from the command line

Manually modify requirements

Edit the drupal_manifest/composer.json file directly:

Then run:

Usage

To update your Drupal core to a new version, run the following command in your project root:

This command will attempt to update all Drupal core packages to 10.3.1 and also attempt to update any other package in the manifest to a version that would be compatible with Drupal 10.3.1 (regardless of the constraints you currently have specified in the manifest).

Usage with Flags

Instead of specifying a specific version, you can specify one of the following flags to dynamically calculate the version to update to:

  1. --latest-minor: Update to the latest stable minor version within the currently installed major version of Drupal core.
  2. --latest-major: Update to the latest stable major version of Drupal core. This option will upgrade your site to the latest available version of Drupal.
  3. --next-major: Update to the latest stable of the next major version of Drupal core.

Configuration

The plugin can be configured via the extra section of composer.json file in your project root. All configuration options are optional. The values specified below are the defaults:

ignore-platform-reqs

Set to true to ignore platform requirements when updating packages.

include-root-dependencies

Set to true to allow updates of packages in the root composer.json.

prefer-lowest

Set to true to prefer the lowest version of packages that satisfy the constraints.

manifest-file.path

The path to the manifest file repository.

manifest-file.name

The name of the manifest file package.

packages-linked-to-core-version

A list of packages that share their versioning with Drupal core.

no-scripts

Set to true to disable scripts during the update process.

no-plugins

Set to true to disable plugins during the update process.

Contributing

We welcome contributions to enhance the functionality and features of this plugin. Please fork the repository and submit pull requests for any improvements or bug fixes.


All versions of drupal-upgrade-plugin with dependencies

PHP Build Version
Package Version
Requires composer-plugin-api Version ^2
php Version >=7.3.0
league/container Version ^4
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 digitalpolygon/drupal-upgrade-plugin contains the following files

Loading the files please wait ...