ar414 / curl-upload-binary-image
PHP upload binary image data via CURL
Installs: 123
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/ar414/curl-upload-binary-image
Requires
- php: >=5.6.0
This package is auto-updated.
Last update: 2025-10-11 17:28:25 UTC
README
PHP upload binary image data via CURL
Install
composer require ar414/curl-upload-binary-image
Usage
<?php require_once '../vendor/autoload.php'; use Ar414\UploadBinaryImage; $url = 'http://0.4.1.4:414/upload?path=/test/'; $fields = []; $fieldName = 'file'; $fileName = 'ar414.png'; $fileBody = file_get_contents('https://github.com/ar414-com/ar414-com/raw/master/assets/ar414.png'); $ret = UploadBinaryImage::upload($url,$fields,$fieldName,$fileName,$fileBody); var_dump($ret);