PHPackages                             infinityloop-dev/graphpinator-upload - 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. [API Development](/categories/api)
4. /
5. infinityloop-dev/graphpinator-upload

ActiveLibrary[API Development](/categories/api)

infinityloop-dev/graphpinator-upload
====================================

Module to handle multipart formdata requests.

v2.0(5mo ago)211.4k↓45.5%1[1 issues](https://github.com/graphpql/graphpinator-upload/issues)[1 PRs](https://github.com/graphpql/graphpinator-upload/pulls)3MITPHPPHP &gt;=8.2CI passing

Since May 31Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/graphpql/graphpinator-upload)[ Packagist](https://packagist.org/packages/infinityloop-dev/graphpinator-upload)[ Docs](https://github.com/graphpql/)[ RSS](/packages/infinityloop-dev-graphpinator-upload/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (14)Versions (8)Used By (3)

GraPHPinator Upload [![PHP](https://github.com/graphpql/graphpinator-upload/actions/workflows/php.yml/badge.svg)](https://github.com/graphpql/graphpinator-upload/actions/workflows/php.yml) [![codecov](https://camo.githubusercontent.com/3de8bb2819a2da2f9fa19b1fd26c26b92b50cd162b56b0b09165f9997a622217/68747470733a2f2f636f6465636f762e696f2f67682f696e66696e6974796c6f6f702d6465762f677261706870696e61746f722d75706c6f61642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/infinityloop-dev/graphpinator-upload)
===========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#graphpinator-upload--)

⚡🌐⚡ Module to handle multipart formdata requests.

Introduction
------------

[](#introduction)

This Module allows GraPHPinator to handle uploads using [multipart-formdata](https://github.com/jaydenseric/graphql-multipart-request-spec) requests. This module hooks into Graphpinator workflow before parsing the request, reads the map and places uploaded files into according variable.

Installation
------------

[](#installation)

Install package using composer

`composer require infinityloop-dev/graphpinator-upload`

How to use
----------

[](#how-to-use)

1. Implement `FileProvider`

`FileProvider` is a service that extracts files from a multipart request by their key. Each HTTP framework provides its own implementation and `FileProvider` serves as an adapter. Framework specific implementations can be found in Graphpinator packages for according framework, eg `infinityloop-dev/graphpinator-nette` contains `FileProvider` implementation for Nette's HTTP abstraction.

2. Register `UploadModule` as GraPHPinator module:

```
$uploadModule = new \Graphpinator\Upload\UploadModule($fileProvider);
$graphpinator = new \Graphpinator\Graphpinator(
    $schema,
    $catchExceptions,
    new \Graphpinator\Module\ModuleSet([$uploadModule, /* possibly other modules */]),
    $logger,
);
```

3. Register `UploadType` to your `Container`:

> This step is probably done by registering `UploadType` as service to your DI solution.

4. Optional step: Use `infinityloop-dev/graphpinator-constraint-directives` to validate uploaded files.

> For more information visit [constraint directives package](https://github.com/infinityloop-dev/graphpinator-constraint-directives).

Known limitations
-----------------

[](#known-limitations)

- Currently, this Module can place files only to variable values and not to arguments directly.
    - This is done to ensure implementation simplicity &amp; compatibility with other modules.
    - There is probably no benefit in placing the files directly to arguments. If you stumble upon some important edge scenario, please open an issue and we can discuss possible solution here.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance70

Regular maintenance activity

Popularity29

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 58% 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 ~415 days

Total

5

Last Release

151d ago

Major Versions

v1.1 → v2.02025-12-18

PHP version history (3 changes)v1.0PHP &gt;=8.0.1

v1.1PHP &gt;=8.1

v2.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/00654c913028f8d25a226eb2ddf368e1b999bf72fa4f77dbd1449c1df218756c?d=identicon)[peldax](/maintainers/peldax)

---

Top Contributors

[![peldax](https://avatars.githubusercontent.com/u/10790033?v=4)](https://github.com/peldax "peldax (101 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (72 commits)")[![HonzaBejvl](https://avatars.githubusercontent.com/u/23004049?v=4)](https://github.com/HonzaBejvl "HonzaBejvl (1 commits)")

---

Tags

graphqlgraphql-phpphp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/infinityloop-dev-graphpinator-upload/health.svg)

```
[![Health](https://phpackages.com/badges/infinityloop-dev-graphpinator-upload/health.svg)](https://phpackages.com/packages/infinityloop-dev-graphpinator-upload)
```

###  Alternatives

[algolia/algoliasearch-client-php

API powering the features of Algolia.

69433.0M114](/packages/algolia-algoliasearch-client-php)[swisnl/json-api-client

A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.

211473.2k12](/packages/swisnl-json-api-client)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)[brd6/notion-sdk-php

Notion SDK for PHP

5918.0k](/packages/brd6-notion-sdk-php)[iwechatpay/openapi

为 wechatpay/wechatpay 增加IDE提示的接口描述包。

406.7k](/packages/iwechatpay-openapi)

PHPackages © 2026

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