InstalledVersions::getVersionRanges( string $packageName )
Returns a version constraint representing all the range(s) which are installed for a given package
Contents
Description Description
It is easier to use this via isInstalled() with the $constraint argument if you need to check whether a given version of a package is installed, and not just whether it exists
Parameters Parameters
- $packageName
-
(Required)
Return Return
(string) Version constraint usable with composer/semver
Source Source
File: vendor/composer/InstalledVersions.php
Expand full source code Collapse full source code View on Github