public function getIPCountryISO($ip){
        try{
            $search = $this->geoIP->country($ip);
            if(is_object($search)){
                return $search->country->isoCode;
            }
        }
        catch(\Exception $e){
            // Cache any IP that arn't found in the database
        }
        return false;
    }
public function getIPCountryISO($ip){
        try{
            $search = $this->geoIP->country($ip);
            if(is_object($search)){
                return $search->country->isoCode;
            }
        }
        catch(\Exception $e){
            // Cache any IP that arn't found in the database
        }
        return false;
    }
public function getIPCountryISO ( $ ip ) { try { $ search = $ this -> geoIP -> country ( $ ip ) ; if ( is_object ( $ search ) ) { return $ search -> country -> isoCode ; } } catch ( \ Exception $ e ) { // Cache any IP that arn't found in the database } return false ; }
Returns the ISO county of an IP address
@param string $ip This should be the IP address you are checking
@return array|false
Returns the ISO county of an IP address