Validate a version compared to a constraint #9989
Answered
by
stof
steevanb
asked this question in
Q&A / Support
-
Hi, I want to validate if a version (like I've not found something to do it in Do you have any library who can do it? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
stof
Jul 1, 2021
Replies: 2 comments 1 reply
-
See https://github.com/composer/semver $satisfied = \Composer\Semver\Semver::satisfies('1.2.3', '^1.4'); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
steevanb
-
Perfect, I don't know how i've missed it! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://github.com/composer/semver