Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 403 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 403 Bytes

RemoteFileLoader

Abstracts remote file loading. Automatically chooses the appropriate method to load remote files.

file_get_contents might be unusable because allow_url_fopen is disabled. curl might not be available because it's not installed.

Usage

$factory = new RemoteFileLoaderFactory();

$loader = $factory->createLoader();

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