PHPackages                             larva/laravel-flysystem-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. larva/laravel-flysystem-cos

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

larva/laravel-flysystem-cos
===========================

This is a Flysystem adapter for the Tencent COS.

2.0.4(3y ago)62.4k↓59.7%2MITPHPPHP ^8.0

Since Feb 19Pushed 3y agoCompare

[ Source](https://github.com/larvatecn/laravel-flysystem-cos)[ Packagist](https://packagist.org/packages/larva/laravel-flysystem-cos)[ RSS](/packages/larva-laravel-flysystem-cos/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)Dependencies (4)Versions (9)Used By (0)

laravel-flysystem-cos
=====================

[](#laravel-flysystem-cos)

 [![Stable Version](https://camo.githubusercontent.com/8618e72d1712232347f8b4bf1a7fac77b9ae83ab79d6a4b89d9e28a71cbbbb80/68747470733a2f2f706f7365722e707567782e6f72672f6c617276612f6c61726176656c2d666c7973797374656d2d636f732f762f737461626c65)](https://packagist.org/packages/larva/laravel-flysystem-cos) [![Total Downloads](https://camo.githubusercontent.com/b6f0b3f04398664e6ef2420d0ff9c2f0029c9f7cd900b8cb102f2f6b47786657/68747470733a2f2f706f7365722e707567782e6f72672f6c617276612f6c61726176656c2d666c7973797374656d2d636f732f646f776e6c6f616473)](https://packagist.org/packages/larva/laravel-flysystem-cos) [![License](https://camo.githubusercontent.com/d4cb9cc450dd062e9413d9140de1fbac512b90f6adea4489c473257b6e0f7474/68747470733a2f2f706f7365722e707567782e6f72672f6c617276612f6c61726176656c2d666c7973797374656d2d636f732f6c6963656e7365)](https://packagist.org/packages/larva/laravel-flysystem-cos)

适用于 Laravel 的腾讯云 COS 适配器，完整支持腾讯云 COS 所有方法和操作。

安装
--

[](#安装)

```
composer require larva/laravel-flysystem-cos -vv
```

修改配置文件: `config/filesystems.php`

添加一个磁盘配置

```
'cos' => [
    'driver' => 'cos',
    // 'endpoint' => getenv('TENCENT_COS_ENDPOINT'),//接入点，留空即可
    'region' => env('TENCENT_COS_REGION'),
    'credentials' => [//认证凭证
        'appId' => env('TENCENT_COS_APP_ID'),//就是存储桶的后缀 如 1258464748
        'secretId' => env('TENCENT_COS_SECRET_ID'),
        'secretKey' => env('TENCENT_COS_SECRET_KEY'),
        'token' => env('TENCENT_COS_TOKEN'),
    ],
    'bucket' => env('TENCENT_COS_BUCKET'),
    'root' => getenv('COS_PREFIX'),//前缀
    'url'=> env('TENCENT_COS_URL'),//CDN URL
    //以下均可省略
    'schema' => 'https',
    'timeout' => 3600,
    'connect_timeout' => 3600,
    'ip' => null,
    'port' => null,
    'domain' => null,
    'proxy' => null,
    'encrypt'=> null,
],
```

修改默认存储驱动

```
    'default' => 'cos'
```

使用方法
----

[](#使用方法)

参见 [Laravel wiki](https://laravel.com/docs/9.x/filesystem)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 52.6% 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 ~103 days

Recently: every ~83 days

Total

8

Last Release

1228d ago

Major Versions

1.0.2 → 2.0.02022-03-19

PHP version history (4 changes)1.0.0PHP ^7.2

1.0.1PHP ^7.2 || ^8.0

1.0.2PHP ^7.4|^8.0

2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/534cdb651e8c806590fa945c6b5a18f361613848e890db1349f4a9fbcae1a650?d=identicon)[xutongle](/maintainers/xutongle)

---

Top Contributors

[![xutl](https://avatars.githubusercontent.com/u/20939388?v=4)](https://github.com/xutl "xutl (10 commits)")[![xutongle](https://avatars.githubusercontent.com/u/46956076?v=4)](https://github.com/xutongle "xutongle (9 commits)")

---

Tags

coslaravelphptencenttencent-cloudtencent-cosFlysystemtencentcosLarva

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/larva-laravel-flysystem-cos/health.svg)

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k277.8M961](/packages/league-flysystem-aws-s3-v3)[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40131.4M119](/packages/league-flysystem-bundle)[barryvdh/elfinder-flysystem-driver

A Flysystem Driver for elFinder

1864.9M40](/packages/barryvdh-elfinder-flysystem-driver)[masbug/flysystem-google-drive-ext

Flysystem adapter for Google Drive with seamless virtual&lt;=&gt;display path translation

2672.0M17](/packages/masbug-flysystem-google-drive-ext)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6133.1M132](/packages/league-flysystem-sftp-v3)[league/flysystem-google-cloud-storage

Google Cloud Storage adapter for Flysystem.

2318.4M63](/packages/league-flysystem-google-cloud-storage)

PHPackages © 2026

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