for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
namespace Backpack\CRUD\app\Console\Commands;
use Illuminate\Console\Command;
class Version extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'backpack:version';
* The console command description.
protected $description = 'Show the version of PHP and Backpack packages.';
* Execute the console command.
* @return mixed
public function handle()
$this->comment('### PHP VERSION:');
$this->line(phpversion());
$this->line('');
$this->comment('### PHP EXTENSIONS:');
$this->line(implode(', ', get_loaded_extensions()));
$this->comment('### LARAVEL VERSION:');
$this->line(\Composer\InstalledVersions::getVersion('laravel/framework'));
$this->comment('### BACKPACK PACKAGE VERSIONS:');
$packages = \Composer\InstalledVersions::getInstalledPackages();
foreach ($packages as $package) {
if (substr($package, 0, 9) == 'backpack/') {
$this->line($package.': '.\Composer\InstalledVersions::getPrettyVersion($package));
}