src/Helpers/RequirementsChecker.php
public function checkPHPversion(string $minPhpVersion = null)
    {
        $minVersionPhp = $minPhpVersion;
        $currentPhpVersion = $this->getPhpVersionInfo();
        $supported = false;

        if ($minPhpVersion == null) {
            $minVersionPhp = $this->getMinPhpVersion();
        }

        if (version_compare($currentPhpVersion['version'], $minVersionPhp) >= 0) {
            $supported = true;
        }

        $phpStatus = [
            'full' => $currentPhpVersion['full'],
            'current' => $currentPhpVersion['version'],
            'minimum' => $minVersionPhp,
            'supported' => $supported
        ];

        return $phpStatus;
    }
public function checkPHPversion(string $minPhpVersion = null)
    {
        $minVersionPhp = $minPhpVersion;
        $currentPhpVersion = $this->getPhpVersionInfo();
        $supported = false;

        if ($minPhpVersion == null) {
            $minVersionPhp = $this->getMinPhpVersion();
        }

        if (version_compare($currentPhpVersion['version'], $minVersionPhp) >= 0) {
            $supported = true;
        }

        $phpStatus = [
            'full' => $currentPhpVersion['full'],
            'current' => $currentPhpVersion['version'],
            'minimum' => $minVersionPhp,
            'supported' => $supported
        ];

        return $phpStatus;
    }
public function checkPHPversion ( string $ minPhpVersion = null ) { $ minVersionPhp = $ minPhpVersion ; $ currentPhpVersion = $ this -> getPhpVersionInfo ( ) ; $ supported = false ; if ( $ minPhpVersion == null ) { $ minVersionPhp = $ this -> getMinPhpVersion ( ) ; } if ( version_compare ( $ currentPhpVersion [ 'version' ] , $ minVersionPhp ) >= 0 ) { $ supported = true ; } $ phpStatus = [ 'full' => $ currentPhpVersion [ 'full' ] , 'current' => $ currentPhpVersion [ 'version' ] , 'minimum' => $ minVersionPhp , 'supported' => $ supported ] ; return $ phpStatus ; }
Check PHP version requirement.

@return array
Check PHP version requirement .