Files
faveo/vendor/unisharp/laravel-filemanager/bin/debug
Manish Verma 126fbb0255 Laravel version update
Laravel version update
2018-08-06 18:55:45 +05:30

32 lines
1.0 KiB
PHP

#!/usr/bin/env php
<?php
/*
* This file is part of laravel-filemanager.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$composerLock = file_get_contents('composer.lock');
$jsonComposerLock = json_decode($composerLock);
foreach ($jsonComposerLock->packages as $package) {
if ($package->name == 'unisharp/laravel-filemanager')
$lfmVersion = $package->version;
if ($package->name == 'laravel/framework')
$laravelVersion = $package->version;
if (isset($lfmVersion) && isset($laravelVersion))
break;
}
$imagickCheck = extension_loaded('imagick') ? 'Install' : 'Not Install';
$gfCheck = extension_loaded('gd') ? 'Install' : 'Not Install';
// show the basic information for debug message
echo 'OS System & Version: ' . php_uname() . PHP_EOL;
echo 'Laravel Version: ' . $laravelVersion . PHP_EOL;
echo 'File Manager Version: ' . $lfmVersion . PHP_EOL;
echo 'imagick Extension: ' . $imagickCheck . PHP_EOL;
echo 'gd Extension: ' . $gfCheck . PHP_EOL;