PHPackages                             fsuuaas/laravel-plupload - 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. fsuuaas/laravel-plupload

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

fsuuaas/laravel-plupload
========================

Plupload package for Laravel 12

3.9(1y ago)06.1k↓39.3%MITPHPPHP ^8.2

Since Apr 7Pushed 1y agoCompare

[ Source](https://github.com/fsuuaas/laravel-plupload)[ Packagist](https://packagist.org/packages/fsuuaas/laravel-plupload)[ RSS](/packages/fsuuaas-laravel-plupload/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (32)Used By (0)

Laravel 12 Plupload
===================

[](#laravel-12-plupload)

[![Latest Stable Version](https://camo.githubusercontent.com/736e221fb9e1729afc0b32f0c4bf419c02507873125caea0b7ada839f68bfd25/68747470733a2f2f706f7365722e707567782e6f72672f667375756161732f6c61726176656c2d706c75706c6f61642f762f737461626c652e737667)](https://packagist.org/packages/fsuuaas/laravel-plupload)[![Total Downloads](https://camo.githubusercontent.com/e28df10412cb00238baf5d475cd7edcae6afe7b8480bfb4cda0928a2248240ef/68747470733a2f2f706f7365722e707567782e6f72672f667375756161732f6c61726176656c2d706c75706c6f61642f642f746f74616c2e737667)](https://packagist.org/packages/fsuuaas/laravel-plupload)[![License](https://camo.githubusercontent.com/cf257b5bdf184a0427c4cc416e9a2cbd6f1f4bb12156a8666c7ae009ac13e4b8/68747470733a2f2f706f7365722e707567782e6f72672f667375756161732f6c61726176656c2d706c75706c6f61642f6c6963656e73652e737667)](https://packagist.org/packages/fsuuaas/laravel-plupload)

##### Laravel package for Plupload .

[](#laravel-package-for-plupload-httppluploadcom)

This package uses some parts of

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Laravel 12.0 or higher

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

[](#installation)

Require this package with composer:

```
composer require fsuuaas/laravel-plupload
```

The package will automatically register its service provider and facade.

Publish the package configuration:

```
php artisan vendor:publish --tag=plupload
```

Usage
-----

[](#usage)

### Uploading files

[](#uploading-files)

#### 1. Use default plupload html

[](#1-use-default-plupload-html)

Use the [examples](http://www.plupload.com/examples) found on the plupload site. The [Getting Started](http://plupload.com/docs/Getting-Started) page is good place to start.

#### 2. Plupload builder

[](#2-plupload-builder)

**make($id, $url)**

Create new uploader.

- **$id**: the unique identification for the uploader.
- **$url**: the upload url end point.

```
{!! Plupload::make('my_uploader_id', route('photos.store'))->render() !!}
```

or use the helper

```
{!! plupload()->make('my_uploader_id', route('photos.store')) !!}
// or even shorter
{!! plupload('my_uploader_id', route('photos.store')) !!}
```

**render($view = 'plupload::uploader', array $data = \[\])**

Renders the uploader. You can customize this by passing a view name and it's data.

#### 3. Use package js file to initialize Plupload (Optional)

[](#3-use-package-js-file-to-initialize-plupload-optional)

If you do not want to write your own js to initialize Plupload, you can use the `upload.js` file that included with the package in `resources/views/vendor/plupload/assets/js`. Make sure that you already have `jQuery` loaded on your page.

**Initialize Plupload**

```

$(function () {
    createUploader('my_uploader_id'); // The Id that you used to create with the builder
});

```

These following methods are useable with the `upload.js` file.

**Set Uploader options**

**setOptions(array $options)**

Set uploader options. Please visit  to see all the options. You can set the default global options in `config/plupload.php`

```
{!! plupload('my_uploader_id', route('photos.store'))
    ->setOptions([
        'filters' => [
            'max_file_size' => '2mb',
            'mime_types' => [
                ['title' => 'Image files', 'extensions' => 'jpg,gif,png'],
            ],
        ],
    ]) !!}
```

**Automatically start upload when files added**

Use `setAutoStart()` in your builder before calling render() function.

**setAutoStart($bool)**

- **$bool**: `true` or `false`

```
{!! plupload('my_uploader_id', route('photos.store'))->setAutoStart(true) !!}
```

### Receiving files

[](#receiving-files)

**file($name, $handler)**

- **$name**: the input name.
- **$handler**: callback handler.

Use this in your route or your controller. Feel free to modify to suit your needs.

```
return Plupload::file('file', function($file) {
    // Store the uploaded file using storage disk
    $path = Storage::disk('local')->putFile('photos', $file);

    // Save the record to the db
    $photo = App\Photo::create([
        'name' => $file->getClientOriginalName(),
        'type' => 'image',
        // ...
    ]);

    // This will be included in JSON response result
    return [
        'success' => true,
        'message' => 'Upload successful.',
        'id' => $photo->id,
        // 'url' => $photo->getImageUrl($filename, 'medium'),
        // 'deleteUrl' => route('photos.destroy', $photo)
        // ...
    ];
});
```

Helper is also available

```
return plupload()->file('file', function($file) {
    // Handle the file upload
});
```

If you are using the package `upload.js` file. The `url` and `deleteUrl` in the JSON payload will be used to generate preview and delete link while the `id` will be appended to the uploader as a hidden field with the following format:

``.

Please note that the `deleteUrl` uses `DELETE` method.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance47

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 72.4% 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 ~135 days

Recently: every ~251 days

Total

28

Last Release

397d ago

Major Versions

1.x-dev → 2.0.02017-06-16

2.x-dev → 3.0.02018-06-16

PHP version history (6 changes)1.0.0PHP &gt;=5.4.0

1.2.0PHP &gt;=5.5.9

3.1PHP &gt;=7.2

3.3PHP &gt;=8.0

3.8PHP &gt;=7.1

3.9PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9248893?v=4)[Sharif Uddin Ahamed](/maintainers/fsuuaas)[@fsuuaas](https://github.com/fsuuaas)

---

Top Contributors

[![jenky](https://avatars.githubusercontent.com/u/1808758?v=4)](https://github.com/jenky "jenky (63 commits)")[![fsuuaas](https://avatars.githubusercontent.com/u/9248893?v=4)](https://github.com/fsuuaas "fsuuaas (20 commits)")[![colorclipping](https://avatars.githubusercontent.com/u/52049362?v=4)](https://github.com/colorclipping "colorclipping (3 commits)")[![nickfan](https://avatars.githubusercontent.com/u/100613?v=4)](https://github.com/nickfan "nickfan (1 commits)")

---

Tags

laravelplupload

### Embed Badge

![Health badge](/badges/fsuuaas-laravel-plupload/health.svg)

```
[![Health](https://phpackages.com/badges/fsuuaas-laravel-plupload/health.svg)](https://phpackages.com/packages/fsuuaas-laravel-plupload)
```

###  Alternatives

[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[tonysm/importmap-laravel

Use ESM with importmap to manage modern JavaScript in Laravel without transpiling or bundling.

148399.8k1](/packages/tonysm-importmap-laravel)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[laracraft-tech/laravel-useful-additions

A collection of useful Laravel additions!

58109.4k](/packages/laracraft-tech-laravel-useful-additions)[jenky/laravel-plupload

Plupload package for Laravel 5

2919.5k](/packages/jenky-laravel-plupload)

PHPackages © 2026

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