PHPackages                             exercisebook/discuzq-cloudinary - 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. exercisebook/discuzq-cloudinary

ActiveLibrary

exercisebook/discuzq-cloudinary
===============================

Cloudinary Adapter for DiscuzQ

531PHP

Since Oct 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ExerciseBook/DiscuzQ-Cloudinary)[ Packagist](https://packagist.org/packages/exercisebook/discuzq-cloudinary)[ RSS](/packages/exercisebook-discuzq-cloudinary/feed)WikiDiscussions alpha Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

概述
==

[](#概述)

Discuz Q Cloudinary 存储支持

配置
==

[](#配置)

1. 使用指令 `composer require exercisebook/discuzq-cloudinary` 下载本库。
2. 在 `config/config.php` 中的 `providers` 添加 `ExerciseBook\DiscuzQCloudinary\FilesystemServiceProvider::class` 使得 DiscuzQ 可以正常加载本库。
3. 在 `config/config.php` 中的 `filesystems.disks` 添加您的 Cloudinary 登陆信息。 ```
    'cloudinary' => [
        'driver'        => 'cloudinary',
        'cloud_name'    => 'XXX',
        'api_key'       => 'XXX',
        'api_secret'    => 'XXX',
        'secure'        => true
    ],
    ```
4. 在 `config/config.php` 中的 `filesystems.disks` 里你想要使用 Cloudinary 存储的部分的 `driver` 改为 `cloudinary`。

最终配置文件示意：

```
    //文件系统配置
    'filesystems' => [
        'default' => 'local',
        'cloud' => 'cos',
        'disks' => [
            'public' => [
                'driver' => 'local',
                'root' => storage_path('app/public'),
                'url' => 'public',
                'visibility' => 'public',
            ],
            'avatar' => [
                'driver' => 'local',
                'root' => storage_path('app/public/avatars'),
                'url' => 'avatar',
                'visibility' => 'public',
            ],
            'avatar_cos' => [
                'driver' => 'cos',
                'root' => storage_path('app/public/avatars'),
                'url' => 'avatar',
                'visibility' => 'public',
            ],
            'attachment' => [
                'driver' => 'cloudinary', // 附件选用 Cloudinary 存储
                'root'   => storage_path('app'),
                'url'    => 'attachment'
            ],
            'attachment_cos' => [
                'driver' => 'cos',
                'root'   => storage_path('app/public/attachment'),
                'url'    => 'attachment'
            ],

            ////////////////////////////////
            'local' => [
                'driver' => 'local',
                'root' => storage_path('app'),
            ],
            'cos' => [
                'driver' => 'cos',
                'region' => '', //设置一个默认的存储桶地域
                'schema' => 'https', //协议头部，默认为http
                'bucket' => '',
                'read_from_cdn' => false, //是否从cdn读取，如果为true ， 设置cdn地址
                'credentials'=> [
                    'secretId'  => '',  //"云 API 密钥 SecretId";
                    'secretKey' => '', //"云 API 密钥 SecretKey";
                    'token' => '' //"临时密钥 token";
                ]
            ],
            'cloudinary' => [
                'driver'        => 'cloudinary',
                'cloud_name'    => 'XXX',
                'api_key'       => 'XXX',
                'api_secret'    => 'XXX',
                'secure'        => true
            ],
        ]
    ],
```

已知问题
====

[](#已知问题)

- 在下载阶段，附件文件名会丢失。

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4807cad8be9b3b28d71d15eed1da2f988b69ec494a291e580b570139a11245b0?d=identicon)[Eric\_Lian](/maintainers/Eric_Lian)

---

Top Contributors

[![ExerciseBook](https://avatars.githubusercontent.com/u/6327311?v=4)](https://github.com/ExerciseBook "ExerciseBook (11 commits)")

---

Tags

discuzq

### Embed Badge

![Health badge](/badges/exercisebook-discuzq-cloudinary/health.svg)

```
[![Health](https://phpackages.com/badges/exercisebook-discuzq-cloudinary/health.svg)](https://phpackages.com/packages/exercisebook-discuzq-cloudinary)
```

PHPackages © 2026

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