15 $this->
contents = json_decode( file_get_contents( $location ),
true );
25 if ( isset( $this->
contents[
'require'] ) ) {
26 foreach ( $this->
contents[
'require'] as $package => $version ) {
27 if ( $package !==
"php" && strpos( $package,
'ext-' ) !== 0 ) {
43 if ( strpos( $version,
'v' ) === 0 ) {
45 $version = ltrim( $version,
'v' );
Reads a composer.json file and provides accessors to get its hash and the required dependencies.
static normalizeVersion( $version)
Strip a leading "v" from the version name.
getRequiredDependencies()
Dependencies as specified by composer.json.
Some information about database access in MediaWiki By Tim January Database layout For information about the MediaWiki database such as a description of the tables and their contents