PHPackages                             bryanthw1020/cos-file-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. bryanthw1020/cos-file-uploader

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

bryanthw1020/cos-file-uploader
==============================

Laravel file upload using Tencent COS service integration.

0.0.1(6y ago)038[5 PRs](https://github.com/bryanthw1020/cos-file-uploader/pulls)MITPHP

Since Dec 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bryanthw1020/cos-file-uploader)[ Packagist](https://packagist.org/packages/bryanthw1020/cos-file-uploader)[ RSS](/packages/bryanthw1020-cos-file-uploader/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (8)Used By (0)

cos-file-uploader
=================

[](#cos-file-uploader)

Laravel file upload using Tencent COS service integration

Installation
------------

[](#installation)

To install, run `composer require bryanthw1020/cos-file-uploader`.

After installation, run `php artisan vendor:publish` to publish the configuration file.

After publishing configuration please make sure to add this two variable into your `env` file

```
TC_COS_SECRET_ID=
TC_COS_SECRET_KEY=

```

Usage
-----

[](#usage)

Below are the available method to use.

```
# To Upload Object
CosFileUploader::uploadObject(string $bucket, string $key, string $fileName, string $base64EncodedFile, string$region = 'ap-singapore', string $schema = 'http');
## Example
CosFileUploader::uploadObject('example-bucket-123456', 'example/file/path', 'example.jpg', $base64EncodedFile);

# To Delete Single Object
CosFileUploader::deleteObject(string $bucket, string $key, string $region = 'ap-singapore', string $schema = 'http');
## Example
CosFileUploader::deleteObject('example-bucket-123456', 'example/file/path/example.jpg');

# To Delete Multiple Object
CosFileUploader::deleteObjects(string $bucket, array $keys, string $region = 'ap-singapore', string $schema = 'http');
## Example
CosFileUploader::deleteObjects('example-bucket-123456', ['example/file/path/example1.jpg', 'example/file/path/example2.jpg']);

# To Get Object URL
CosFileUploader::getObjectUrl(string $bucket, string $key, int $duration = 10, string $region = 'ap-singapore', string $schema = 'http');
## Example
CosFileUploader::getObjectUrl('example-bucket-123456', 'example/file/path/example.jpg');
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

2353d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/30335246?v=4)[Bryan](/maintainers/bryanthw1020)[@bryanthw1020](https://github.com/bryanthw1020)

---

Top Contributors

[![bryanthw1020](https://avatars.githubusercontent.com/u/30335246?v=4)](https://github.com/bryanthw1020 "bryanthw1020 (3 commits)")[![bryanthw95](https://avatars.githubusercontent.com/u/17899662?v=4)](https://github.com/bryanthw95 "bryanthw95 (2 commits)")[![bryanthw](https://avatars.githubusercontent.com/u/26052649?v=4)](https://github.com/bryanthw "bryanthw (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laraveltencent-cloudtencent-cos-service

### Embed Badge

![Health badge](/badges/bryanthw1020-cos-file-uploader/health.svg)

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

PHPackages © 2026

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