PHPackages                             wenbobao/laravel-qcloud-cos - 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. wenbobao/laravel-qcloud-cos

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

wenbobao/laravel-qcloud-cos
===========================

腾讯云COS对象存储

01PHP

Since May 18Pushed 12mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

扩展说明
====

[](#扩展说明)

该扩展是对`laravel`框架中的文件存储自定义驱动的扩展，实现`腾讯云cos 对象存储`驱动。目前是在laravel 5.6 版本测试与开发的，其他版本暂时没有亲测。

使用
==

[](#使用)

安装扩展包

```
composer require WenboBao/laravel-qcloud-cos

```

配置 filesystems.php

```
'disks' => [
       .
       .
       .

    'qcloud-cos' => [
        /* 驱动名称 */
        'driver' => 'qcloud-cos',
        /* 地域 */
        'region' =>  env('QCLOUD_COS_REGION', 'ap-shanghai'),
        /* 认证信息 */
        'credentials' => [
            'app_id' =>  env('QCLOUD_COS_APP_ID'),
            'secret_id' =>  env('QCLOUD_COS_SECRET_ID'),
            'secret_key' => env('QCLOUD_COS_SECRET_KEY'),
            'token' => env('QCLOUD_COS_TOKEN', null)
        ],
        /* 默认存储桶 */
        'default_bucket' =>  env('QCLOUD_COS_DEFAULT_BUCKET'),
        'timeout' => env('QCLOUD_COS_TIMEOUT', 3600),
        'connect_timeout' =>  env('QCLOUD_COS_CONNECT_TIMEOUT', 3600)
    ],

],

```

配置好自己的配置之后就可以开始使用了，具体使用方法可以参考[laravel官方文档](https://laravel-china.org/docs/laravel/5.6/filesystem/1390)

官方文档
====

[](#官方文档)

[laravel 文件存储](https://laravel-china.org/docs/laravel/5.6/filesystem/1390)

[腾讯云对象存储](https://cloud.tencent.com/document/product/436)

结尾
==

[](#结尾)

如果喜欢，欢迎 star，如果发现了任何问题或有更好的意见和建议，欢迎联系或者`pull request`

License
=======

[](#license)

MIT

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

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/fe937e76bd2665cb2c4053f0a85b4e502b8733a4179740b33f634ec6f0467d8b?d=identicon)[wenbobao](/maintainers/wenbobao)

### Embed Badge

![Health badge](/badges/wenbobao-laravel-qcloud-cos/health.svg)

```
[![Health](https://phpackages.com/badges/wenbobao-laravel-qcloud-cos/health.svg)](https://phpackages.com/packages/wenbobao-laravel-qcloud-cos)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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