PHPackages                             mainul/chunk-uploader - 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. mainul/chunk-uploader

ActiveLibrary

mainul/chunk-uploader
=====================

Chunked file upload (local storage) for Laravel with server-side merge and optional demo JS.

v1.0.0(2mo ago)02MITPHPPHP ^8.1

Since Mar 9Pushed 2mo agoCompare

[ Source](https://github.com/Mainul12501/laravel-chunk-upload)[ Packagist](https://packagist.org/packages/mainul/chunk-uploader)[ RSS](/packages/mainul-chunk-uploader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

RemarkHB Chunk Uploader (Laravel Package)
=========================================

[](#remarkhb-chunk-uploader-laravel-package)

Chunked upload to **local storage** (no S3). Designed for big files (e.g. 50MB+ videos) with:

- Chunk upload endpoint
- Server-side merge endpoint (streaming merge, low memory)
- Temp chunk cleanup
- Configurable chunk dir + final dir + max chunk size + optional middleware

Install (local dev)
-------------------

[](#install-local-dev)

1. Put this package inside your project (or install via VCS later).
2. Add to `composer.json` repositories if needed and run `composer require remarkhb/chunk-uploader:*`.

Publish config (optional)
-------------------------

[](#publish-config-optional)

```
php artisan vendor:publish --tag=chunk-uploader-config
```

Routes
------

[](#routes)

This package registers:

- POST `/chunk-uploader/chunk`
- POST `/chunk-uploader/complete`

You can override the route prefix in config.

Storage
-------

[](#storage)

Final file is stored to `storage/app/public/` by default (`videos/`). Run once:

```
php artisan storage:link
```

Demo JS
-------

[](#demo-js)

A demo chunk uploader is included in `resources/js/chunk-uploader-demo.js`. Copy it into your app or publish resources as you wish.

Example client flow
-------------------

[](#example-client-flow)

1. Send chunks sequentially to `/chunk-uploader/chunk`
2. Call `/chunk-uploader/complete` to merge and get final public URL

Security notes
--------------

[](#security-notes)

- Validate file types client-side and server-side.
- Consider auth middleware for routes.
- Consider rate limiting.

Config keys
-----------

[](#config-keys)

See `config/chunk-uploader.php`.

Resume + Parallel Upload
------------------------

[](#resume--parallel-upload)

This package includes an additional endpoint:

- GET `/{prefix}/status/{upload_id}?total_chunks=N`

It returns which chunks have been received so the client can upload only missing chunks. The demo JS implements:

- resume (upload only missing chunks)
- parallel chunk upload with a concurrency limit (default 4)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance88

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

62d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ff09c9d3ceaf957dae0f365749477680c0eb6d8d7ada9bcc266e3d4b53552a0?d=identicon)[Mainul12501](/maintainers/Mainul12501)

---

Top Contributors

[![Mainul12501](https://avatars.githubusercontent.com/u/45430222?v=4)](https://github.com/Mainul12501 "Mainul12501 (2 commits)")

### Embed Badge

![Health badge](/badges/mainul-chunk-uploader/health.svg)

```
[![Health](https://phpackages.com/badges/mainul-chunk-uploader/health.svg)](https://phpackages.com/packages/mainul-chunk-uploader)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)

PHPackages © 2026

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