Lock your Textpattern CMS version or define package dependencies

4.6.2 2017-03-15 19:01 UTC

README

Composer meta package for Textpattern CMS. This package can be used to lock the installed Textpattern version and handle Textpattern version dependencies in packages. This package makes sure your Textpattern installation and packages are compatible and can work together, making the painless dependency management reality.

Locking your Textpattern installation version

When you start using Composer to manage Textpattern packages, plugins and themes, you should lock in your Textpattern version. This makes sure the packages you install are compatible with the Textpattern version you have. You can lock in your Textpattern version using Composer’s require command.

$ composer require textpattern/lock:4.6.2

Where the 4.6.2 is the Textpattern version you have.

Defining required Textpattern version as a dependency in your packages

Textpattern plugin and theme developers can define the compatible and required Textpattern versions using the textpattern/lock package. You can set requirements using the require property, or exclude versions using the conflict.

{
    "require": {
        "textpattern/lock" : ">=4.5.0"
    }
}

The above, for example, would set require Textpattern version 4.5.0 or newer. The plugin or theme will not be installed if the user’s Textpattern version doesn’t meet the requirements. See Composer schema and basic usage for more information about defining requirements.