19 $this->contents = json_decode( file_get_contents( $location ),
true );
29 if ( isset( $this->contents[
'require'] ) ) {
30 foreach ( $this->contents[
'require'] as $package => $version ) {
31 if ( $package !==
"php" && strpos( $package,
'ext-' ) !== 0 ) {
47 if ( strpos( $version,
'v' ) === 0 ) {
49 $version = ltrim( $version,
'v' );