A Drush plugin to compare the versions present in the composer.lock with the ones requested in composer.json.

Frederic G. MARAND 44f9853676 WIP 17B08. пре 3 година
ComposerCheck 44f9853676 WIP 17B08. пре 3 година
bin 68f4ec6846 Fix bin path. пре 7 година
.gitignore 3ea825e62d WIP: LoaderFactory complete with coverage. пре 7 година
LICENSE.txt 587a5c126d Added license information. пре 7 година
README.md 0146c8aa55 Support platform locks: extensions and PHP version. пре 7 година
composer.json a9aa9decec Coding standards. пре 7 година
composer_check.drush.inc 997e7ed9ed Basically working standalone. Needs to handle options and arguments. пре 7 година
phpcs.xml.dist a9aa9decec Coding standards. пре 7 година
phpunit.xml.dist 997e7ed9ed Basically working standalone. Needs to handle options and arguments. пре 7 година

README.md

Drupal Composer check

This Drush plugin provides a composer-check (alias cck) command, which compares the packages versions in composer.lock with those requested in the composer.json file of a Drupal 8 project.

Syntax

  • Arguments:
    • composer.lock: Optional. The path to the lock file. Defaults to the one in Drupal root.
  • Options:
    • --all: List all locked packages, even those not requested
    • --yaml: Produce YAML output instead of a table
  • Aliases: cck

Composer / Packagist

This package is available on Packagist as fgm/composer-check, but for now the config section of your composer.json will need "secure-http": false because this repo is not yet available over HTTPS.

Examples

  • Default usage in a drupal/drupal project:

    drush cck

  • Listing all packages in a drupal-composer/drupal-project project, in YAML format:

    drush cck --all --yaml $PWD/composer.lock

License

Like any Drupal code, this plugin is licensed under the General Public License, version 2.0 or later.

For jurisdictions needing it, it is also licensed under the CeCILL 2.1 or later.