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

Version Laravel Package

phar-io/version

phar-io/version is a PHP library for parsing, comparing, and validating semantic versions and version constraints. Supports operators like >=, <=, caret (^) and tilde (~) ranges, plus pre-release labels, to check if versions comply.

View on GitHub
Deep Wiki
Context7
3.2.1

Build metadata is now supported and considered for equality checks and the equal constraint

3.1.1

Fixed

  • #28: VersionConstraintParser does not support logical OR represented by single pipe (|) (Thanks @llaville)
3.1.0

Changed

  • Internal Refactoring
  • More scalar types

Added

  • #24: Version::getOriginalString() added (Thanks @addshore)
  • Version constraints using the caret operator (^) now honor pre-1.0 releases, e.g. ^0.3 translates to 0.3.*)
  • Various integration tests for version constraint processing

Fixed

  • #23: Tilde operator without patch level
3.0.4

Fixed

  • #22: make dev suffix rank works for uppercase too
3.0.2

This release now supports PHP 7.2+ and PHP ^8.0. No other changes included.

2.0.1

Fixed

  • Versions without a pre-release suffix are now always considered greater than versions without a pre-release suffix. Example: 3.0.0 > 3.0.0-alpha.1
2.0.0

Changes to public API:

  • PreReleaseSuffix::construct(): optional parameter $number removed
  • PreReleaseSuffix::isGreaterThan(): introduced
  • Version::hasPreReleaseSuffix(): introduced

Added

  • #11: Added support for pre-release version suffixes. Supported values are:

    • dev
    • beta (also abbreviated form b)
    • rc
    • alpha (also abbreviated form a)
    • patch (also abbreviated form p)

    All values can be followed by a number, e.g. beta3.

    When comparing versions, the pre-release suffix is taken into account. Example: 1.5.0 > 1.5.0-beta1 > 1.5.0-alpha3 > 1.5.0-alpha2 > 1.5.0-dev11

Changed

  • reorganized the source directories

Fixed

  • #10: Version numbers containing a numeric suffix as seen in Debian packages are now supported.
1.0.1
  • Change InvalidVersionException hierarchy
1.0.0
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
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
twbs/bootstrap4