Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Composer Prefer Lowest Laravel Package

dereuromark/composer-prefer-lowest

Composer plugin to help you work with prefer-lowest setups by managing minimum dependency versions and related constraints. Useful for testing packages against lowest supported dependencies and keeping composer.json requirements consistent.

View on GitHub
Deep Wiki
Context7
0.1.10

Improvements

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

Note: Now PHP 7.3+

0.1.9

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.

0.1.8

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.

0.1.7

Fixes

Fixed wildcard parsing.

0.1.6

Fixes

Fixed range parsing.

0.1.5

Fixes

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

Improvements

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

0.1.3

Bugfixes

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

0.1.2

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.

0.1.1

Bugfixes

Fixed output of errors in CLI.

0.1.0

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
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport