. */ declare(strict_types=1); namespace App\Console\Commands; use Illuminate\Console\Command; /** * Class ShowVersion */ final class ShowVersion extends Command { protected $description = 'Echoes the current version and some debug info.'; protected $signature = 'importer:version'; /** * Execute the console command. */ public function handle(): int { $this->line(sprintf('Firefly III data importer v%s', config('importer.version'))); $this->line(sprintf('PHP: %s %s %s', \PHP_SAPI, PHP_VERSION, PHP_OS)); return 0; } }