InstalledVersions::getVersionRanges( string $packageName )

Returns a version constraint representing all the range(s) which are installed for a given package

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

Top ↑

Parameters Parameters



Top ↑

Return Return

(string) Version constraint usable with composer/semver

Top ↑

Source Source

File: vendor/composer/InstalledVersions.php