This is a PHP service to retrieve file contents.
Some features:
- Extracts zipped and gzipped files (and returns the first file from the extraction result)
- Converts file contents into UTF-8
- Retries file retrieval with incrementing waiting periods
- Determines the last modification date from the URL's HTTP headers
Run tests with make tests
.
- Increase test coverage
- Log messages should not contain basic auth credentials when provided as part of the URL
- Perhaps add
curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, [$this, 'logDownloadProgress']);