PHPackages                             atomjoy/curlsendfile - 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. atomjoy/curlsendfile

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

atomjoy/curlsendfile
====================

Send files from php with curl

v2.0(6y ago)15MITPHPPHP &gt;=7.3

Since Jan 26Pushed 2y agoCompare

[ Source](https://github.com/atomjoy/CurlSendFile)[ Packagist](https://packagist.org/packages/atomjoy/curlsendfile)[ RSS](/packages/atomjoy-curlsendfile/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

CurlSendFile Php class
======================

[](#curlsendfile-php-class)

Send big files with php curl

### Set php.ini

[](#set-phpini)

```
# In php.ini only
file_uploads = On
allow_url_fopen = Off
allow_url_include = Off

# In php.ini or in .user.ini in local directory
max_execution_time = 40000

max_input_time = 40000
max_input_vars = 100

upload_max_filesize = 900M
post_max_size = 900M
```

### Send file with curl

[](#send-file-with-curl)

```
