/**
  * fopen request wrapper
  *
  * @param array $params associative array of request parameters
  * 
  * @return string
  */
 private function _executeFOpenRequestAndReturn($params)
 {
     $raw_data = '';
     $url = $this->_config['gateway'];
     // checking OpenSSL
     $environmentChecker = new EnvChecker();
     if ($environmentChecker->checkOpenSSL()) {
         // OpenSSL not found
         // We should use HTTP instead of HTTPS
         $url = $this->_config['gateway_no_ssl'];
     }
     foreach ($params as $key => $value) {
         $url .= "&" . $key . "=" . $value;
     }
     $handler = @fopen($url, 'r');
     if ($handler) {
         while ($line = @fgets($handler, 1024)) {
             $raw_data .= $line;
         }
         fclose($handler);
     } else {
         throw new Exception("Please check does PHP have OpenSSL support.");
     }
     return $raw_data;
 }
<?php

require_once "EnvChecker.php";
$env = new EnvChecker();
$env->test();