pe / component-form-data
Form data component allow to parse raw form data body for non POST requests
Installs: 76
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/pe/component-form-data
Requires
- php: >=5.5
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is auto-updated.
Last update: 2025-10-05 22:23:17 UTC
README
This component allow to parse raw form data body for non POST requests
Installation
php composer.phar require pe/component-form-data:1.0.0
Usage
// Parse data $data = new FormData( $_SERVER['CONTENT_TYPE'], file_get_contents('php://input') ); // Get $_FILES compatible array $data->getFILES() // Get $_POST compatible array $data->getPOST()