composer-prefer-lowest

Checks prefer-lowest installation for actually defined min versions in composer.json

MIT License

Downloads
326K
Stars
20
Committers
3
composer-prefer-lowest - 0.1.10 Latest Release

Published by dereuromark almost 3 years ago

Improvements

Support "composer/semver": "^1.4 || ^2.0 || ^3.0"

Note: Now PHP 7.3+

composer-prefer-lowest - 0.1.9

Published by dereuromark about 3 years ago

Improvements

Support a min/max range of e.g. "^4.2.12 < 4.3.0 || ^4.3.8 || ^5.0.0".
The first is internally translated to "[== 4.2.12.0 < 4.3.0.0-dev]" and therefore needs special treatment.

composer-prefer-lowest - 0.1.8

Published by dereuromark about 3 years ago

Improvements

PHP 7.2+ with types added and PHP 8 checking in CI.
From using side nothing should change or be an issue if you use a high enough PHP version to run this tool.

composer-prefer-lowest - 0.1.7

Published by dereuromark over 3 years ago

Fixes

Fixed wildcard parsing.

composer-prefer-lowest - 0.1.6

Published by dereuromark over 4 years ago

Fixes

Fixed range parsing.

composer-prefer-lowest - 0.1.5

Published by dereuromark over 4 years ago

Fixes

  • Fixed tool to not error on unknown require packages.
  • Beta and other suffixes do not false-positive anymore.
composer-prefer-lowest - 0.1.4

Published by dereuromark almost 5 years ago

Improvements

Add --majors-only/-m option to be able to only fail on major issues.

composer-prefer-lowest - 0.1.3

Published by dereuromark over 5 years ago

Bugfixes

Skip also dev-... aliased branches. We are mainly interested in stable releases here.

composer-prefer-lowest - 0.1.2

Published by dereuromark almost 6 years ago

Improvements

When declared both in require and require-dev, this issues just a warning, not an error.
The build will not fail, as this seems to be intentional (to make prefer-lowest pass here).
Still a valid warning, as this way it is impossible to test the promised minimum.
Consider injecting the require-dev dependency in Travis more dynamically where needed.

composer-prefer-lowest - 0.1.1

Published by dereuromark almost 6 years ago

Bugfixes

Fixed output of errors in CLI.

composer-prefer-lowest - 0.1.0

Published by dereuromark almost 6 years ago

Initial Release

Try it out :)

E.g. for Travis CI:

php:
  - ...
  - 7.3

env:
  global:
    - DEFAULT=1

matrix:
  include:
    - php: 5.6
      env: PREFER_LOWEST=1

before_script:
  - if [[ $PREFER_LOWEST != 1 ]]; then composer install --prefer-source --no-interaction; fi
  - if [[ $PREFER_LOWEST == 1 ]]; then composer update --prefer-lowest --prefer-dist --prefer-stable --no-interaction; fi
  - if [[ $PREFER_LOWEST == 1 ]]; then composer require --dev dereuromark/composer-prefer-lowest; fi

script:
  - if [[ $DEFAULT == 1 ]]; then vendor/bin/phpunit; fi
  - if [[ $PREFER_LOWEST == 1 ]]; then vendor/bin/validate-prefer-lowest; fi
Package Rankings
Top 5.65% on Packagist.org
Badges
Extracted from project README
CI Minimum PHP Version Coding Standards
Related Projects