PHPackages                             minz/laravel-qiniu-dora - 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. minz/laravel-qiniu-dora

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

minz/laravel-qiniu-dora
=======================

laravel qiniu dora library

1.0.1(6y ago)018MITPHPPHP ^7.0

Since Nov 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/minz/laravel-qiniu-dora)[ Packagist](https://packagist.org/packages/minz/laravel-qiniu-dora)[ RSS](/packages/minz-laravel-qiniu-dora/feed)WikiDiscussions master Synced 2d ago

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

laravel qiniu dora package
==========================

[](#laravel-qiniu-dora-package)

[qiniu dora](https://www.qiniu.com/products/dora) for Laravel based on [qiniu/php-sdk](https://github.com/qiniu/php-sdk).

Requirement
-----------

[](#requirement)

- PHP &gt;= 7.0

Installing
----------

[](#installing)

```
$ composer require "minz/laravel-qiniu-dora" -vvv
```

Configuration
-------------

[](#configuration)

- 1.After installing the library, add the follow code to your `config/app.php` file:

```
'providers' => [
    ......
    Minz\Laravel\Qiniu\OSS\QiniuDoraServiceProvider::class,
],

'aliases' => [
    ......
    'Dora' => Minz\Laravel\Qiniu\Dora\QiniuDoraFacade::class,
],
```

> Laravel 5.5+ skip

- 2.publish config file `config/qiniuDora.php`

```
php artisan vendor:publish --provider="Minz\Laravel\Qiniu\Dora\QiniuDoraServiceProvider"
```

- 3.Add .env params to your `.env` file

```
QINIU_ACCESS_KEY=your qiniu access key
QINIU_SECRET_KEY=your qiniu secret key
QINIU_BUCKET=your qiniu bucket name
QINIU_PIPELINE=your qiniu pipeline
```

Usage
-----

[](#usage)

[qiniu dira](https://developer.qiniu.com/dora/api/1291/persistent-data-processing-pfop) 七牛智能多媒体服务开发者文档
[qiniu/php-sdk](https://github.com/qiniu/php-sdk) 七牛PHP SDK

- Api document

```
/**
     * 对资源文件进行异步持久化处理
     *
     * @param string $fileKey 存储于bucket中的资源key
     * @param $fops string|array  待处理的pfop操作，多个pfop操作以array的形式传入。
     *                    eg. avthumb/mp3/ab/192k, vframe/jpg/offset/7/w/480/h/360
     * @param string|null $pipeline 多媒体队列名称,默认使用配置文件
     * @param string|null $notifyUrl 回调服务器地址
     * @param bool $force 如果key相同是否强制覆盖object 默认为false
     * @return array (返回持久化处理的persistentId, 返回的错误)
     */
    public function execute(string $fileKey, $fops, string $pipeline = null, string $notifyUrl = null, bool $force = false)
```

- use

```
    #打水印图片公共读地址
    $imgUrl = "http:yourPictireUrl";
    #七牛kodo资源名称
    $fileKey = "demo.wmv";
    #打水印后视频另存为地址 必须为 bucket:saveKey base64Encode
    $videoSaveKey = config('qiniuDora.bucket') . ":" . "yourVideoSaveKey";
    #截取视频某个帧另存为图片 必须为 bucket:saveKey base64Encode
    $pictureSaveKey = config('qiniuDora.bucket') . ":" . "yourPictureSaveKey";
    //格式请参考七牛dora api 文档
    $fops = [
        "avthumb/mp4/r/15/vb/256k/vcodec/libx264/ab/64k/acodec/libfaac/wmImage/" . base64_encode($imgUrl) . "|saveas/" . base64_encode($videoSaveKey),
        "vframe/jpg/offset/5|saveas/" . base64_encode($pictureSaveKey)
    ];
    list($id, $err) = Dora::execute($fileKey, $fops);
```

depend
------

[](#depend)

- [qiniu/php-sdk](https://github.com/qiniu/php-sdk%22%3Eqiniu/php-sdk)

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~21 days

Total

2

Last Release

2357d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65171118862a58f868b5ddee97dbe50eb37ab8ed2835b81c2bdc1ddca67718ef?d=identicon)[minz](/maintainers/minz)

---

Top Contributors

[![minz](https://avatars.githubusercontent.com/u/15317432?v=4)](https://github.com/minz "minz (4 commits)")[![15201541813](https://avatars.githubusercontent.com/u/42400686?v=4)](https://github.com/15201541813 "15201541813 (2 commits)")

### Embed Badge

![Health badge](/badges/minz-laravel-qiniu-dora/health.svg)

```
[![Health](https://phpackages.com/badges/minz-laravel-qiniu-dora/health.svg)](https://phpackages.com/packages/minz-laravel-qiniu-dora)
```

###  Alternatives

[zgldh/qiniu-laravel-storage

Qiniu Resource (Cloud) Storage SDK for Laravel 5/6/7/8/9

530394.0k14](/packages/zgldh-qiniu-laravel-storage)[overtrue/flysystem-qiniu

Flysystem adapter for the Qiniu storage.

231891.2k58](/packages/overtrue-flysystem-qiniu)[yangyifan/upload

上传 SDK for Laravel

12422.6k3](/packages/yangyifan-upload)[itbdw/laravel-storage-qiniu

A storage library for laravel5 and qiniu sdk

7015.2k](/packages/itbdw-laravel-storage-qiniu)[catlane/chunk-file-upload

文件上传小扩展，可支持大文件分块分片上传到七牛云or本地，优化您上传大文件的苦恼

284.9k](/packages/catlane-chunk-file-upload)

PHPackages © 2026

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