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.
^1.2 || ~3.0)Executives: "This package eliminates version-related bugs and reduces development costs by providing a proven solution for dependency compatibility checks. It ensures seamless integration between components, minimizes support tickets from version mismatches, and accelerates feature delivery by leveraging a trusted, open-source tool used across high-impact PHP projects."
Engineering: "A lightweight, rigorously tested library that handles all semver edge cases – including pre-release suffixes, build metadata, and complex constraint parsing (e.g., ^0.3 or ~1.2|>2.0). Integrates in minutes via Composer with zero configuration, and has been battle-tested in production for years with full PHP 7.2+/8.0 support."
How can I help you explore Laravel packages today?