PHPackages                             ibrand/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. [File &amp; Storage](/categories/file-storage)
4. /
5. ibrand/uploader

ActiveLibrary[File &amp; Storage](/categories/file-storage)

ibrand/uploader
===============

iBrand upload

v1.0.9(4y ago)212.5k2MITPHPPHP &gt;=7.0CI failing

Since Dec 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/guojiangclub/uploader)[ Packagist](https://packagist.org/packages/ibrand/uploader)[ RSS](/packages/ibrand-uploader/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (4)Versions (12)Used By (0)

### cdn文件上传-七牛云

[](#cdn文件上传-七牛云)

#### 特性

[](#特性)

1. 支持上传图片，音频，视频
2. 自定义允许上传文件类型
3. 使用简单、即插即用

#### 安装

[](#安装)

```
composer require ibrand/uploader

```

- 低于 Laravel5.5 版本，`config/app.php` 文件中 `providers` 添加`iBrand\Upload\UploadServiceProvider::class`
- 如需自定义配置请执行 `php artisan vendor:publish --provider="iBrand\Upload\UploadServiceProvider" --tag="config"`

#### 配置项

[](#配置项)

```
   return [
       'default'      => [
           'disk' => env('DEFAULT_UPLOAD_DISK', 'public'),
       ],
       'disks'        => [
           'qiniu' => [
               'driver'     => 'qiniu',
               //七牛云access_key
               'access_key' => env('QINIU_ACCESS_KEY', ''),
               //七牛云secret_key
               'secret_key' => env('QINIU_SECRET_KEY', ''),
               //七牛云文件上传空间
               'bucket'     => env('QINIU_BUCKET', ''),
               //七牛云cdn域名
               'domain'     => env('QINIU_DOMAIN', ''),
               //与cdn域名保持一致
               'url'        => env('QINIU_DOMAIN', ''),
           ],
       ],
       'upload_image' => [
           //允许上传的文件类型
           'supportedExtensions' => ['png', 'jpg', 'jpeg', 'gif'],
           'supportedMimeTypes'  => ['image/jpeg', 'image/gif', 'image/png'],
           //单位：M
           'allowMaxSize'        => 2,
       ],
       'upload_voice' => [
           'supportedExtensions' => ['mp3', 'wav'],
           'supportedMimeTypes'  => ['audio/mpeg', 'audio/x-wav'],
           'allowMaxSize'        => 5,
       ],
       'upload_video' => [
           'supportedExtensions' => ['webm', 'mov', 'mp4'],
           'supportedMimeTypes'  => ['video/webm', 'video/mpeg', 'video/mp4', 'video/quicktime'],
           'allowMaxSize'        => 30,
       ],
   ];

```

#### 使用

[](#使用)

在.env文件中配置QINIU\_ACCESS\_KEY，QINIU\_SECRET\_KEY，QINIU\_BUCKET，QINIU\_DOMAIN等配置项。

有两种方式上传文件至七牛云以供选择：

1. 请求接口：

    ```
    $router->post('cdn/upload', 'UploadController@upload');
    返回结果：
    {
        "status": true,
        "message": "上传成功",
        "data": {
            "path": "client_id/date/xxxxxx.jpg",
            "url": "https://cdn.xxxxx.cc/client_id/date/xxxxxx.jpg"
        }
    }

    ```

    具体使用请参照单元测试
2. 调用Storage

    ```
    use Storage
    Storage::disk('qiniu')->put($filename, $file);

    ```

#### Resource

[](#resource)

项目基于[overtrue/laravel-filesystem-qiniu](https://github.com/overtrue/laravel-filesystem-qiniu)

#### 果酱云社区

[](#果酱云社区)

 [ ![点击跳转](https://camo.githubusercontent.com/6359e5bd680f99c0f946287e22a32d5935d94a942ae2116a0b2f6f0c7a70ccca/68747470733a2f2f63646e2e67756f6a69616e672e636c75622f696d6167652f323032322f30322f31362f77755f316673306a62636f32313832673238306c317661676d376265362e706e67) ](https://guojiang.club/)

- 全网真正免费的IT课程平台
- 专注于综合IT技术的在线课程，致力于打造优质、高效的IT在线教育平台
- 课程方向包含Python、Java、前端、大数据、数据分析、人工智能等热门IT课程
- 300+免费课程任你选择

 [ ![点击跳转](https://camo.githubusercontent.com/8f168577f9682601d01cf6c726dbbccd911815b2b6d4f999e27475448f22a107/68747470733a2f2f63646e2e67756f6a69616e672e636c75622f696d6167652f323032322f30322f31362f77755f316673306c383261653170713131653433316a366e31376a7331767137362e706e67) ](https://guojiang.club/)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~180 days

Total

10

Last Release

1558d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05a4dd937f49471fe1d2cb4da6445668df23b2ad2422789b3aaed3ef9459c377?d=identicon)[shjchen](/maintainers/shjchen)

---

Top Contributors

[![tangqi1916](https://avatars.githubusercontent.com/u/193469035?v=4)](https://github.com/tangqi1916 "tangqi1916 (16 commits)")

---

Tags

uploadibrand

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 5.x, 4.x, and 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

5.4k7.9M13](/packages/kartik-v-bootstrap-fileinput)[vich/uploader-bundle

Ease file uploads attached to entities

1.9k25.9M116](/packages/vich-uploader-bundle)[oneup/uploader-bundle

This Symfony bundle provides a server implementation for handling single and multiple file uploads using either FineUploader, jQuery File Uploader, YUI3 Uploader, Uploadify, FancyUpload, MooUpload, Plupload or Dropzone. Features include chunked uploads, orphanages, Gaufrette and Flysystem support.

6066.3M27](/packages/oneup-uploader-bundle)[kartik-v/yii2-widget-fileinput

An enhanced FileInput widget for Bootstrap 3.x, 4.x &amp; 5.x with file preview, multiple selection, and more features (sub repo split from yii2-widgets)

2286.8M95](/packages/kartik-v-yii2-widget-fileinput)[marrouchi/upload-crop-image-bundle

Basic server side cropping behavior for Symfony2

111.1k](/packages/marrouchi-upload-crop-image-bundle)

PHPackages © 2026

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