public static function getComposerManifest(string $manifestPath, string $configurationPath = null)
    {
        $composerManifest = static::readComposerManifest($manifestPath);
        if ($composerManifest === null) {
            return null;
        }

        if ($configurationPath !== null) {
            return ObjectAccess::getPropertyPath($composerManifest, $configurationPath);
        }
        return $composerManifest;
    }
public static function getComposerManifest(string $manifestPath, string $configurationPath = null)
    {
        $composerManifest = static::readComposerManifest($manifestPath);
        if ($composerManifest === null) {
            return null;
        }

        if ($configurationPath !== null) {
            return ObjectAccess::getPropertyPath($composerManifest, $configurationPath);
        }
        return $composerManifest;
    }
public static function getComposerManifest ( string $ manifestPath , string $ configurationPath = null ) { $ composerManifest = static :: readComposerManifest ( $ manifestPath ) ; if ( $ composerManifest === null ) { return null ; } if ( $ configurationPath !== null ) { return ObjectAccess :: getPropertyPath ( $ composerManifest , $ configurationPath ) ; } return $ composerManifest ; }
Returns contents of Composer manifest - or part there of.

@param string $manifestPath
@param string $configurationPath Optional. Only return the part of the manifest indexed by configurationPath
@return array|mixed
Returns contents of Composer manifest - or part there of .