<?php

namespace App\Http\Controllers\Api;

use App\Interfaces\Controller;
use PragmaRX\Version\Package\Facade as Version;

/**
 * Class StatusController
 * @package App\Http\Controllers\Api
 */
class StatusController extends Controller
{
    /**
     * @return \Illuminate\Http\JsonResponse
     */
    public function status()
    {
        return response()->json([
            'version' => Version::compact(),
            'php'     => PHP_VERSION,
        ]);
    }
}
