protected function getPackageDetailsFromGivenComposerLockFileEnhanced($fileIn, $inParametersArray = [])
    {
        if (!file_exists($fileIn)) {
            return ['error' => $fileIn . ' was not found'];
        }
        $alnfo    = [];
        $packages = $this->getPkgFileInListOfPackageArrayOut($fileIn);
        $pkgType  = $this->decisionPackageOrPackageDev($inParametersArray);
        foreach ($packages[$pkgType] as $key => $value) {
            $keyToUse = $value['name'];
            if (array_key_exists('Not Grouped By Name', $inParametersArray)) {
                $keyToUse = $key;
            }
            $alnfo[$keyToUse] = $this->mergePackageAttributes($value, $inParametersArray);
            ksort($alnfo[$keyToUse]);
        }
        ksort($alnfo);
        return $alnfo;
    }
protected function getPackageDetailsFromGivenComposerLockFileEnhanced($fileIn, $inParametersArray = [])
    {
        if (!file_exists($fileIn)) {
            return ['error' => $fileIn . ' was not found'];
        }
        $alnfo    = [];
        $packages = $this->getPkgFileInListOfPackageArrayOut($fileIn);
        $pkgType  = $this->decisionPackageOrPackageDev($inParametersArray);
        foreach ($packages[$pkgType] as $key => $value) {
            $keyToUse = $value['name'];
            if (array_key_exists('Not Grouped By Name', $inParametersArray)) {
                $keyToUse = $key;
            }
            $alnfo[$keyToUse] = $this->mergePackageAttributes($value, $inParametersArray);
            ksort($alnfo[$keyToUse]);
        }
        ksort($alnfo);
        return $alnfo;
    }
protected function getPackageDetailsFromGivenComposerLockFileEnhanced ( $ fileIn , $ inParametersArray = [ ] ) { if ( ! file_exists ( $ fileIn ) ) { return [ 'error' => $ fileIn . ' was not found' ] ; } $ alnfo = [ ] ; $ packages = $ this -> getPkgFileInListOfPackageArrayOut ( $ fileIn ) ; $ pkgType = $ this -> decisionPackageOrPackageDev ( $ inParametersArray ) ; foreach ( $ packages [ $ pkgType ] as $ key => $ value ) { $ keyToUse = $ value [ 'name' ] ; if ( array_key_exists ( 'Not Grouped By Name' , $ inParametersArray ) ) { $ keyToUse = $ key ; } $ alnfo [ $ keyToUse ] = $ this -> mergePackageAttributes ( $ value , $ inParametersArray ) ; ksort ( $ alnfo [ $ keyToUse ] ) ; } ksort ( $ alnfo ) ; return $ alnfo ; }
Returns a complete list of packages and respective details from a composer.lock file

@param string $fileIn
@param array $inParametersArray
@return array
Returns a complete list of packages and respective details from a composer . lock file