InstalledVersions::getInstalledPackages()
Returns a list of all package names which are present, either by being installed, replaced or provided
Contents
Return Return
(string[])
Source Source
File: libraries/lifterlms-cli/vendor/composer/InstalledVersions.php
public static function getInstalledPackages() { $packages = array(); foreach (self::getInstalled() as $installed) { $packages[] = array_keys($installed['versions']); } if (1 === \count($packages)) { return $packages[0]; } return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); }
Expand full source code Collapse full source code View on GitHub