16 $composerJson = file_get_contents(dirname(__FILE__) .
"/composer.json");
18 throw new Exception(
"Unable to read composer.json file!");
23 throw new Exception(
"JSON parse error while reading composer.json!");
28 throw new Exception(
"Version field must be set in composer.json!");
if($composerJson===false) $composer
if($composer===null) if(!isset($composer->version)) $release