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 5d 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 27% 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

2205d 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

[google/cloud-core

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

343121.4M79](/packages/google-cloud-core)[google/cloud-functions-framework

Google Cloud Functions Framework for PHP

21313.4M](/packages/google-cloud-functions-framework)[wallabag/wallabag

open source self hostable read-it-later web application

12.6k2.2k](/packages/wallabag-wallabag)[anthropic-ai/sdk

Anthropic PHP SDK

129134.7k5](/packages/anthropic-ai-sdk)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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