PHPackages                             ackneal/multipart - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ackneal/multipart

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ackneal/multipart
=================

1.0.0(6y ago)010MITPHPPHP &gt;=5.6CI failing

Since May 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ackneal/multipart)[ Packagist](https://packagist.org/packages/ackneal/multipart)[ RSS](/packages/ackneal-multipart/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Multipart, PHP multipart parsing
================================

[](#multipart-php-multipart-parsing)

[![Build Status](https://camo.githubusercontent.com/6e1a63ed222481a275cc83f6c39176f4e530cde26fe04bd6431dc57da0635bf6/68747470733a2f2f7472617669732d63692e6f72672f61636b6e65616c2f6d756c7469706172742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/github/ackneal/multipart)

Multipart is PHP MIME multipart parsing that makes it easy to get a single part in a multipart body.

```
$message = readPart()) {
    echo $part->getHeaderLine('content-type') . PHP_EOL;
    echo $part->getBody() . PHP_EOL;
}

/**
 *
 * This is implicitly typed plain ASCII text.
 * It does NOT end with a linebreak.
 * text/plain; charset=us-ascii
 * This is explicitly typed plain ASCII text.
 * It DOES end with a linebreak.
 */
```

Examples
--------

[](#examples)

Sufficient for HTTP multipart/form-data ([RFC 2388](https://tools.ietf.org/html/rfc2388))

```
$message = readPart();
echo $part->getFormName() . PHP_EOL; // foo
echo $part->getFileName() . PHP_EOL; // bar.txt
echo $part->getBody() . PHP_EOL; // foobar
```

Handle HTTP multipart/\* request

```
preg_match('/^multipart\/.+; boundary=(?.+)$/', $_SERVER['CONTENT_TYPE'], $m);
$stream = new \Multipart\Stream(fopen('php://input', 'r'), $m['boundary']);
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2253d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16054348?v=4)[Neal](/maintainers/ackneal)[@ackneal](https://github.com/ackneal)

---

Top Contributors

[![ackneal](https://avatars.githubusercontent.com/u/16054348?v=4)](https://github.com/ackneal "ackneal (27 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ackneal-multipart/health.svg)

```
[![Health](https://phpackages.com/badges/ackneal-multipart/health.svg)](https://phpackages.com/packages/ackneal-multipart)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

346132.9M112](/packages/google-cloud-core)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M158](/packages/algolia-algoliasearch-client-php)[oat-sa/tao-core

TAO core extension

66143.7k122](/packages/oat-sa-tao-core)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M735](/packages/sylius-sylius)[gotenberg/gotenberg-php

A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!

3856.2M31](/packages/gotenberg-gotenberg-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
