PHPackages                             carropublic/serverless-chunk-payload - 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. carropublic/serverless-chunk-payload

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

carropublic/serverless-chunk-payload
====================================

2.0(1y ago)09.7k↓50%PHPPHP &gt;=7.1.0

Since Nov 30Pushed 1y ago4 watchersCompare

[ Source](https://github.com/carro-public/serverless-chunk-upload)[ Packagist](https://packagist.org/packages/carropublic/serverless-chunk-payload)[ RSS](/packages/carropublic-serverless-chunk-payload/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (5)Used By (0)

Serverless Chunk Upload
=======================

[](#serverless-chunk-upload)

### Lambda Invocation Limitation

[](#lambda-invocation-limitation)

- AWS Gateway only allow HTTP API Payload Size of 10MB.
- AWS Lambda only allow Function Invocation payload size of 6MB. -&gt; So Using AWS Gateway and AWS Lambda Integration, max payload size is 6MB

### Simple Chunk Upload Protocol

[](#simple-chunk-upload-protocol)

To be able to send larger payload, need to chunk the payload into smaller pieces.

- Let's say we have JSON payload of 10MB
- Decode the JSON into string, and split it into 10 chunks of 1MB string
- Call the API 10 times with different chunk payload
    - chunk\_data: current chunk
    - chunk\_index: current chunk's index
    - total\_chunks: total chunks (in this example = 10)
    - payload\_hashed: the md5 value of original JSON
- BE will collect 10 chunks
- After the last chunk is collected, the actual payload will be concatenated and pass through Laravel pipeline
    - The previous chunks will be collected and saved in Redis Cache
    - Those request will be returned immediately after saving to Redis Cache

### UniqueId

[](#uniqueid)

Since `payload_hashed` will be used as Tag Name of Cache, so attempting to upload the same content multiple times may cause conflict between those upload

To avoid this unexpected behavior, always add extra data to original payload called `uniqueId`

- This could be any random string or current timestamp, which can be considered as unique between multiple uploads.
- This `uniqueId` data will be deducted after restoring the original data.

### How to use

[](#how-to-use)

```
composer require carropublic/serverless-chunk-payload

```

The middleware will be auto registered via ServiceProvider, which is also auto registered by Laravel Auto Discovery

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance43

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

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 ~1 days

Total

4

Last Release

448d ago

Major Versions

1.x-dev → 2.02025-02-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/170e8e0e4b2ce9b2768af2b02ab22cb615ed0f591f18061c8ab3686c49596936?d=identicon)[carro-tech](/maintainers/carro-tech)

![](https://www.gravatar.com/avatar/f2a97fcbee13f9514081883ddbd05ea295dfe71f62fa4b78421ad1a9f4e2d90f?d=identicon)[datpm.carro](/maintainers/datpm.carro)

---

Top Contributors

[![datpmwork](https://avatars.githubusercontent.com/u/9279315?v=4)](https://github.com/datpmwork "datpmwork (12 commits)")

---

Tags

brefchunk-uploadserverless

### Embed Badge

![Health badge](/badges/carropublic-serverless-chunk-payload/health.svg)

```
[![Health](https://phpackages.com/badges/carropublic-serverless-chunk-payload/health.svg)](https://phpackages.com/packages/carropublic-serverless-chunk-payload)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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