mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 04:31:08 -04:00
get current virsions of php and extensions
This commit is contained in:
@ -88,6 +88,16 @@ class UpdateController extends Controller
|
|||||||
|
|
||||||
$json = Updater::checkForUpdate(Setting::getSetting('version'));
|
$json = Updater::checkForUpdate(Setting::getSetting('version'));
|
||||||
|
|
||||||
|
if ($json->success) {
|
||||||
|
$extensions = $json->version->extensions;
|
||||||
|
$data = [];
|
||||||
|
foreach ($extensions as $extension) {
|
||||||
|
$data[$extension] = phpversion($extension);
|
||||||
|
}
|
||||||
|
$data['php'] = phpversion();
|
||||||
|
$json->version->extensions = $data;
|
||||||
|
}
|
||||||
|
|
||||||
return response()->json($json);
|
return response()->json($json);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user