partkeepr/remote-file-loader

远程文件加载的抽象层

安装数: 4,088

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 1

开放问题: 0

类型:symfony-bundle

dev-master / 1.0.x-dev 2015-09-30 13:47 UTC

This package is not auto-updated.

Last update: 2024-10-02 09:36:36 UTC


README

抽象远程文件加载。自动选择加载远程文件的正确方法。

file_get_contents 可能不可用,因为 allow_url_fopen 被禁用。 curl 可能不可用,因为它尚未安装。

用法

$factory = new RemoteFileLoaderFactory();

$loader = $factory->createLoader();

$data = $loader->load("http://www.google.de");