private static function getPackagesArray($composerRequireArray)
    {
        $packagesArray = self::getPackagesAndDependencies($composerRequireArray);

        foreach ($packagesArray as $packageArray) {
            $packages[$packageArray['name']] = $packageArray['version'];
        }

        return $packages;
    }
private static function getPackagesArray($composerRequireArray)
    {
        $packagesArray = self::getPackagesAndDependencies($composerRequireArray);

        foreach ($packagesArray as $packageArray) {
            $packages[$packageArray['name']] = $packageArray['version'];
        }

        return $packages;
    }
private static function getPackagesArray ( $ composerRequireArray ) { $ packagesArray = self :: getPackagesAndDependencies ( $ composerRequireArray ) ; foreach ( $ packagesArray as $ packageArray ) { $ packages [ $ packageArray [ 'name' ] ] = $ packageArray [ 'version' ] ; } return $ packages ; }
Get Installed packages & their version numbers as an associative array

@param $packagesArray
@return array
Get Installed packages & their version numbers as an associative array