barcellano-envoy / parse_multipart_form_put
PHP library for handling multipart form data for put requests
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/barcellano-envoy/parse_multipart_form_put
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-10-21 08:06:40 UTC
README
Package to parse multipart form data from a PUT request. Useful for replacing photos using a RESTful api.
Example:
$put_data = array(); Envoy\MultipartForm\Processer::parse($put_data); print_r($put_data);
OR
$put_data = array(); Envoy\MultipartForm\Processer::parse($put_data, $RAW_INPUT); print_r($put_data);
Not really tested very much. Let me know if you run into any issues with github issues.
Results:
Key is form name
Array
(
[test1] => Field 1 text
[test2] => Field 2 Text
)
Or with a file
Array
(
[test1] => Field 1 text
[test2] => Field 2 Text
[files] => Array
(
[0] => Array
(
[form_name] => file1
[file_name] => 712.png
[content-type] => image/png
[file] => �PNG
�
IHDR�����>a�9tEXtSoftwareAni...