Back to StreamTransport class

Method isSupported

public static bool
isSupported
()
Method to check if http transport stream available for use
Returns
  • bool true if available else false
Since
  • 3.0.0

Method isSupported - Source code

/**
 * Method to check if http transport stream available for use
 *
 * @return  boolean  true if available else false
 *
 * @since   3.0.0
 */
public static function isSupported()
{
    return \function_exists('fopen') && \is_callable('fopen') && ini_get('allow_url_fopen');
}