kladislav/laravel-chunk-upload
Composer 安装命令:
composer require kladislav/laravel-chunk-upload
包简介
Service for chunked upload with several js providers
README 文档
README
Introduction
Easy to use service/library for chunked upload with supporting multiple JS libraries on top of Laravel's file upload with low memory footprint in mind. Currently supports Laravel 5+ (with 5.5 Auto discovery) with features as cross domains requests, automatic clean schedule and easy usage.
Installation
1. Install via composer
composer require kladislav/laravel-chunk-upload
2. Add the service provider (Laravel 5.4 and below - supports Auto discovery)
\Kladislav\LaravelChunkUpload\ServiceProvider::class
3. Publish the config (Laravel 5.2 and above, optional)
php artisan vendor:publish --provider="Kladislav\LaravelChunkUpload\ServiceProvider"
Usage
Setup is composed in 3 steps:
- Integrate your controller that will handle the file upload. How to
- Setting route for the controller. How to
- Choose your front-end provider below (we support multiple providers in single controller)
| Library | Wiki | single & chunk upload | simultaneous uploads | In example project | Author |
|---|---|---|---|---|---|
| resumable.js | Wiki | ✔️ | ✔️ | ✔️ | @pionl |
| DropZone | Wiki | ✔️ | ✔️ | ✔️ | @pionl |
| jQuery-File-Upload | Wiki | ✔️ | ✖️ | ✔️ | @pionl |
| Plupload | Wiki | ✔️ | ✖️ | ✖️ | @pionl |
| simple uploader | ✖️ | ✔️ | ✖️ | ✖️ | @dyktek |
| ng-file-upload | Wiki | ✔️ | ✖️ | ✖️ | @L3o-pold |
Simultaneous uploads: The library must send last chunk as last, otherwise the merging will not work correctly.
Custom disk: At this moment I recommend to use the basic storage setup (not linking public folder). It is not tested (Have free time to ensure it is working? PR the changes!).
For more detailed information (tips) use the Wiki or for working example continue to separate repository with example.
Changelog
Can be found in releases.
Contribution or extending
See CONTRIBUTING.md for how to contribute changes. All contributions are welcome.
Copyright and License
laravel-chunk-upload was written by Martin Kluska and is released under the MIT License.
Copyright (c) 2016-2019 Martin Kluska
kladislav/laravel-chunk-upload 适用场景与选型建议
kladislav/laravel-chunk-upload 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21.51k 次下载、GitHub Stars 达 6, 最近一次更新时间为 2019 年 10 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「upload」 「laravel」 「chunk」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 kladislav/laravel-chunk-upload 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kladislav/laravel-chunk-upload 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 kladislav/laravel-chunk-upload 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
Класс для разбиения итерируемых коллекций на пачки.
A laravel manager to handle chunked files upload
WidgetBundle is something similar to modx snippets, makes your content managment system powerful.
Laravel Media Popup to upload/view the files
Pandawa SDK for chunk upload
统计信息
- 总下载量: 21.51k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-10-22