https://github.com/partkeepr/remote-file-loader
https://github.com/partkeepr/remote-file-loader
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/partkeepr/remote-file-loader
- Owner: partkeepr
- Created: 2015-09-30T10:44:45.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-30T13:47:54.000Z (almost 11 years ago)
- Last Synced: 2024-04-26T16:06:13.067Z (about 2 years ago)
- Language: PHP
- Size: 90.8 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```php
$factory = new RemoteFileLoaderFactory();
$loader = $factory->createLoader();
$data = $loader->load("http://www.google.de");
```