Skip to content
Dependency patches for the concrete5 dependencies
Branch: master
Clone or download
Latest commit ab8d907 Jul 29, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
doctrine doctrine/annotations: Fix access array offset on value of type null Jul 29, 2019
phpunit/phpunit Patch PHPUnit so that it doesn't use each() Oct 15, 2018
sunra/php-simple-html-dom-parser Initial version Oct 12, 2018
zendframework Fix idn_to_... deprecation warnings May 29, 2019
LICENSE Initial commit Oct 12, 2018
composer.json doctrine/annotations: Fix access array offset on value of type null Jul 29, 2019

Dependency patches for concrete5

concrete5 version 8 still supports PHP version 5.5. This is required because many users are still using that PHP version, and they may not be able (or may not know how) to upgrade to a newer PHP version.

Internal changes in newer PHP versions require to upgrade some of the composer packages used by concrete5, but those packages are no more compatible with PHP 5.5, so we need a way to patch them.

This dependency-patches project contains those required patches, so that concrete5 can be used with PHP ranging from 5.5 to the newer versions.

How to use

The official releases of concrete5 that can be downloaded from already contain the patches included in dependency-patches.

If you use a composer-based concrete5 installation you need to add these lines to your composer.json file:

  • in the require section:
    "concrete5/dependency-patches": "^1.0.0",
  • in the extra section:
    "allow-subpatches": [

How to add a new patch

If you want to patch a composer package named <vendor>/<package> at version 1.2.3, you should:

  1. create a .patch file in the <vendor>/<package> directory
  2. add a <vendor>/<package>:1.2.3 key to the extra.patches section of the composer.json file of this project. For example:
    "<vendor>/<package>:1.2.7": {
        "Description of the patch": "<vendor>/<package>/name-of-the-patch-file.patch"
  3. to test the patch locally, you can edit the composer.json file of your concrete5 installation, adding:
    • In the require section:
      "concrete5/dependency-patches": "dev-master"
    • In the repositories section:
          "type": "path",
          "url": "relative/or/absolute/path/to/your-local/dependency-patches"
      PS: on Windows, you can use forward slashes (/) instead of back-slashes (\) as the directory separator.
You can’t perform that action at this time.