This commit is contained in:
16
api/app/Utils/ComposerJson.php
Normal file
16
api/app/Utils/ComposerJson.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Utils;
|
||||
|
||||
class ComposerJson
|
||||
{
|
||||
public static function getVersion()
|
||||
{
|
||||
return self::getJson()->version;
|
||||
}
|
||||
|
||||
public static function getJson()
|
||||
{
|
||||
return json_decode(file_get_contents(base_path('composer.json')));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user