2017 © Pedro Peláez
 

library multipart

A PHP library for parsing and generating RFC1341 Multipart.

image

h4cc/multipart

A PHP library for parsing and generating RFC1341 Multipart.

  • Sunday, September 7, 2014
  • by h4cc
  • Repository
  • 4 Watchers
  • 12 Stars
  • 10,296 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 1 Versions
  • 12 % Grown

The README.md

h4cc/multipart

Build Status, (*1)

A PHP library for parsing (and generating) RFC1341 Multipart., (*2)

Finally a Multipart parser library for PHP!, (*3)

Usage

$content = '--------------------------eb2d2b296b73a011' . "\r\n"
    . 'Content-Disposition: form-data; name="foo"' . "\r\n"
    . 'Content-Type: text/plain' . "\r\n\r\n"
    . 'bar' . "\r\n"
    . 'buz' . "\r\n"
    . '--------------------------eb2d2b296b73a011--' . "\r\n";
$contentType = 'multipart/form-data; boundary=a3d8fcba372c456a';

$parserSelector = new ParserSelector();
$parser = $parserSelector->getParserForContentType($contentType);
$multipart = $parser->parse($content);

var_dump($multipart);

Current Status

I needed a multipart parser, so a wrote one. If anybody would like to write a Generator, do so :), (*4)

The Versions

07/09 2014

dev-master

9999999-dev

A PHP library for parsing and generating RFC1341 Multipart.

  Sources   Download

MIT

The Development Requires