PHPackages                             athlon1600/php-curl-file-downloader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. athlon1600/php-curl-file-downloader

ActiveLibrary[HTTP &amp; Networking](/categories/http)

athlon1600/php-curl-file-downloader
===================================

v1.0.2(5y ago)25105.2k↓31.3%9[1 PRs](https://github.com/Athlon1600/php-curl-file-downloader/pulls)9PHP

Since Jun 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Athlon1600/php-curl-file-downloader)[ Packagist](https://packagist.org/packages/athlon1600/php-curl-file-downloader)[ RSS](/packages/athlon1600-php-curl-file-downloader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (9)

[![Supported PHP Versions](https://camo.githubusercontent.com/b73d4c589260f2a78bb4df8afbef4da34a4f3c52171a7ae9be57c88174f0fe17/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e332c253230382e302c253230382e312c253230382e322d626c7565)](https://github.com/Athlon1600/php-curl-file-downloader)[![GitHub Workflow Status (with event)](https://camo.githubusercontent.com/553ca00b6c004f432e6c8526b0ea8df5d2bcfd410c2dda0aa2171818f879f4fa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4174686c6f6e313630302f7068702d6375726c2d66696c652d646f776e6c6f616465722f6275696c642e796d6c)](https://camo.githubusercontent.com/553ca00b6c004f432e6c8526b0ea8df5d2bcfd410c2dda0aa2171818f879f4fa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4174686c6f6e313630302f7068702d6375726c2d66696c652d646f776e6c6f616465722f6275696c642e796d6c)[![](https://camo.githubusercontent.com/8b4e38613dc55c51036f6e215bc2b50dd094ed89f3e79cc98eca151d37e34945/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f4174686c6f6e313630302f7068702d6375726c2d66696c652d646f776e6c6f616465722e737667)](https://camo.githubusercontent.com/8b4e38613dc55c51036f6e215bc2b50dd094ed89f3e79cc98eca151d37e34945/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f4174686c6f6e313630302f7068702d6375726c2d66696c652d646f776e6c6f616465722e737667)[![Packagist Downloads (custom server)](https://camo.githubusercontent.com/0a7d3aad99e626a36415310914f4a7fa32b9e4e06d286ae03e749f3e17e33f93/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f4174686c6f6e313630302f7068702d6375726c2d66696c652d646f776e6c6f61646572)](https://camo.githubusercontent.com/0a7d3aad99e626a36415310914f4a7fa32b9e4e06d286ae03e749f3e17e33f93/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f4174686c6f6e313630302f7068702d6375726c2d66696c652d646f776e6c6f61646572)

Download large files using PHP and cURL
=======================================

[](#download-large-files-using-php-and-curl)

There's too many code snippets on the Internet on how to do this, but not enough libraries.

This will allow you to download files of any size using cURL without ever running out of memory. That's it.

```
