PHPackages                             kaigejinjin/oss-utils - 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. kaigejinjin/oss-utils

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

kaigejinjin/oss-utils
=====================

Supper quick use Aliyun OSS or Tencent COS or Qiniu Koa to get、put、delete Object.

010PHP

Since Apr 20Pushed 3y agoCompare

[ Source](https://github.com/kaigejinjin/oss-utils)[ Packagist](https://packagist.org/packages/kaigejinjin/oss-utils)[ RSS](/packages/kaigejinjin-oss-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

介绍（oss-utils）
=============

[](#介绍oss-utils)

一个集成阿里云、腾讯云、七牛云对象存储的工具类

An SDK integrating Alibaba cloud, Tencent cloud and qiniu cloud object storage

超级快速使用阿里云OSS或腾讯COS及七牛云Koa获取、放置、删除对象

Supper quick use Aliyun OSS or Tencent COS or Qiniu Koa to get、put、delete Object.

安装（Installation）
----------------

[](#安装installation)

```
composer require kaigejinjin/oss-utils
```

案列（example）
-----------

[](#案列example)

```
use lishuo\oss\Manager;
use lishuo\oss\storage\StorageConfig;

    // 参数1：string $appId
    // 参数2：string $appKey
    // 参数3：string $region 地域名、比如（1）阿里云上海为例（http://oss-cn-shanghai.aliyuncs.com）（2）腾讯云上海为例（sh）直接地域名首字母即可（3）其它Region请按实际情况填写。

    $config = new StorageConfig("控制台查看获取", "控制台查看获取", "七牛云不需要配置这个参数，留空字符串");

    $storage = Manager::storage("云存储厂商") // 阿里云：aliyun、腾讯云：tencent、七牛云：qiniu
        ->init($config) // 初始化配置
        ->bucket("存储桶名称"); // 指定操作的存储桶

    // 查看文件列表
    $storage->get(10); // 指定查看10条
    // 上传文件
    $path = "./test.jpg";
    $result = $storage->put("test.jpg", $path);
    // 删除文件
    $keys = ['test.jpg'];
    $result = $storage->delete($keys);
```

报错参考（Error reporting）
---------------------

[](#报错参考error-reporting)

腾讯云本地上传报错：cURL error 60: SSL certificate problem: self signed certificate in certificate chain

解决方案：

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87% 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/6f1c0a3fed6ada4d2865d804b11761876fd235bbd60795bef20d8269d24f54cd?d=identicon)[kaigejinjin](/maintainers/kaigejinjin)

---

Top Contributors

[![china-li-shuo](https://avatars.githubusercontent.com/u/44250200?v=4)](https://github.com/china-li-shuo "china-li-shuo (20 commits)")[![kaigejinjin](https://avatars.githubusercontent.com/u/112227900?v=4)](https://github.com/kaigejinjin "kaigejinjin (3 commits)")

### Embed Badge

![Health badge](/badges/kaigejinjin-oss-utils/health.svg)

```
[![Health](https://phpackages.com/badges/kaigejinjin-oss-utils/health.svg)](https://phpackages.com/packages/kaigejinjin-oss-utils)
```

###  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.8M123](/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.7M61](/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)
