public function checkUpdate()
    {
        $url = 'https://repo.packagist.org/p/ironphp/ironphp.json';
        $packagistJson = @file_get_contents($url);
        if($packagistJson === true) {
            $packagistArray = json_decode($packagistJson,true);
            $packagistData = $packagistArray['packages']['ironphp/ironphp']['dev-master'];
            $time = $packagistData['time'];
            $version = $packagistData['version']; //dev-master
            $branchAlias = $packagistData['extra']['branch-alias']['dev-master']; // 0.0.1-dev
            date_default_timezone_set('Asia/Kolkata');
            $parsedTime = date_parse($time);
            $timeStamp = mktime($parsedTime['hour'], $parsedTime['minute'], $parsedTime['second'], $parsedTime['month'], $parsedTime['day'], $parsedTime['year']);
        }
        $installData = $this->app->getIntallTime();

        if($packagistJson === true) {
            echo Colors::WHITE." ".str_replace('T', ' ', substr(date(DATE_ATOM, $timeStamp), 0, 19));
            echo Colors::GREEN."\nChecking updates... ".Colors::WHITE;
            if($timeStamp > $installData->time) {
                if($branchAlias != $this->app->version()) {
                    print "Package have an update ".$branchAlias;
                }
                else {
                    print "Package have an update ".$version;
                }
            }
            else {
                print "There is no update.";
            }
        }
        else {
            echo Colors::GREEN."\nChecking updates... ".Colors::WHITE." No internet!";
        }
    }
public function checkUpdate()
    {
        $url = 'https://repo.packagist.org/p/ironphp/ironphp.json';
        $packagistJson = @file_get_contents($url);
        if($packagistJson === true) {
            $packagistArray = json_decode($packagistJson,true);
            $packagistData = $packagistArray['packages']['ironphp/ironphp']['dev-master'];
            $time = $packagistData['time'];
            $version = $packagistData['version']; //dev-master
            $branchAlias = $packagistData['extra']['branch-alias']['dev-master']; // 0.0.1-dev
            date_default_timezone_set('Asia/Kolkata');
            $parsedTime = date_parse($time);
            $timeStamp = mktime($parsedTime['hour'], $parsedTime['minute'], $parsedTime['second'], $parsedTime['month'], $parsedTime['day'], $parsedTime['year']);
        }
        $installData = $this->app->getIntallTime();

        if($packagistJson === true) {
            echo Colors::WHITE." ".str_replace('T', ' ', substr(date(DATE_ATOM, $timeStamp), 0, 19));
            echo Colors::GREEN."\nChecking updates... ".Colors::WHITE;
            if($timeStamp > $installData->time) {
                if($branchAlias != $this->app->version()) {
                    print "Package have an update ".$branchAlias;
                }
                else {
                    print "Package have an update ".$version;
                }
            }
            else {
                print "There is no update.";
            }
        }
        else {
            echo Colors::GREEN."\nChecking updates... ".Colors::WHITE." No internet!";
        }
    }
public function checkUpdate ( ) { $ url = 'https://repo.packagist.org/p/ironphp/ironphp.json' ; $ packagistJson = @ file_get_contents ( $ url ) ; if ( $ packagistJson === true ) { $ packagistArray = json_decode ( $ packagistJson , true ) ; $ packagistData = $ packagistArray [ 'packages' ] [ 'ironphp/ironphp' ] [ 'dev-master' ] ; $ time = $ packagistData [ 'time' ] ; $ version = $ packagistData [ 'version' ] ; //dev-master
 $ branchAlias = $ packagistData [ 'extra' ] [ 'branch-alias' ] [ 'dev-master' ] ; // 0.0.1-dev
 date_default_timezone_set ( 'Asia/Kolkata' ) ; $ parsedTime = date_parse ( $ time ) ; $ timeStamp = mktime ( $ parsedTime [ 'hour' ] , $ parsedTime [ 'minute' ] , $ parsedTime [ 'second' ] , $ parsedTime [ 'month' ] , $ parsedTime [ 'day' ] , $ parsedTime [ 'year' ] ) ; } $ installData = $ this -> app -> getIntallTime ( ) ; if ( $ packagistJson === true ) { echo Colors :: WHITE . " " . str_replace ( 'T' , ' ' , substr ( date ( DATE_ATOM , $ timeStamp ) , 0 , 19 ) ) ; echo Colors :: GREEN . "\nChecking updates... " . Colors :: WHITE ; if ( $ timeStamp > $ installData -> time ) { if ( $ branchAlias != $ this -> app -> version ( ) ) { print "Package have an update " . $ branchAlias ; } else { print "Package have an update " . $ version ; } } else { print "There is no update." ; } } else { echo Colors :: GREEN . "\nChecking updates... " . Colors :: WHITE . " No internet!" ; } }
Check application update.

@return bool
Check application update .