InstalledVersions
This class is copied in every Composer installed project and available to all
Contents
Description Description
See also <a href="https://getcomposer.org/doc/07-runtime.md#installed-versions">https://getcomposer.org/doc/07-runtime.md#installed-versions</a>
To require its presence, you can require <code>composer-runtime-api ^2.0</code>
Source Source
File: vendor/composer/InstalledVersions.php
Expand full source code Collapse full source code View on Github
Methods Methods
- getAllRawData — Returns the raw data of all installed.php which are currently loaded for custom implementations
- getInstalled
- getInstalledPackages — Returns a list of all package names which are present, either by being installed, replaced or provided
- getInstalledPackagesByType — Returns a list of all package names with a specific type e.g. 'library'
- getInstallPath
- getPrettyVersion
- getRawData — Returns the raw installed.php data for custom implementations — deprecated
- getReference
- getRootPackage
- getVersion
- getVersionRanges — Returns a version constraint representing all the range(s) which are installed for a given package
- isInstalled — Checks whether the given package is installed
- reload — Lets you reload the static array from another file
- satisfies — Checks whether the given package satisfies a version constraint