Skip to content

Class for download huge files (chunked) over HTTP/HTTPS with HTTP auth

Notifications You must be signed in to change notification settings

Ulv/chunked-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Класс для скачивания больших файлов по HTTP по частям с поддержкой SSL/HTTP auth

Фичи:

  • удаленный файл скачивается по частям. Размер устанавливается в константе класса CHUNK_SIZE_MB
  • есть возможность использовать SSL (скачивание файла по HTTPS)
  • есть возможность использовать простую HTTP аутентификацию (basic HTTP authentication)

Пример использования:

$downloader = new ChunkedDownloader();
$downloader->setSourceFile($remoteUri);
$downloader->setDestinationFile($cacheFile);
$downloader->setUseSSL(true);
$downloader->setHttpAuth(config("learner.user"), config("learner.pass"));
$downloader->download();

About

Class for download huge files (chunked) over HTTP/HTTPS with HTTP auth

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages