public static function createFromUri($url, array $options = [])
    {
        return extension_loaded('curl') ?
            self::createViaHttpClient($url, $options) : self::createViaStreamWrapper($url, $options);
    }