20 $this->contents = json_decode( file_get_contents( $location ),
true );
30 foreach ( $this->contents[
'packages'] as $installed ) {
31 $deps[$installed[
'name']] = [
33 'type' => $installed[
'type'],
34 'licenses' => $installed[
'license'] ?? [],
35 'authors' => $installed[
'authors'] ?? [],
36 'description' => $installed[
'description'] ??
'',
static normalizeVersion( $version)
Strip a leading "v" from the version name.
Reads a composer.lock file and provides accessors to get its hash and what is installed.
getInstalledDependencies()
Dependencies currently installed according to composer.lock.