PHPackages                             axguowen/think-obsclient - 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. axguowen/think-obsclient

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

axguowen/think-obsclient
========================

Simple Object Storage Client For ThinkPHP

051PHP

Since Apr 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/axguowen/think-obsclient)[ Packagist](https://packagist.org/packages/axguowen/think-obsclient)[ RSS](/packages/axguowen-think-obsclient/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ThinkPHP 对象存储 客户端
=================

[](#thinkphp-对象存储-客户端)

一个简单的 ThinkPHP 对象存储 客户端

安装
--

[](#安装)

```
composer require axguowen/think-obsclient

```

使用
--

[](#使用)

首先配置config目录下的obsclient.php配置文件。

### 简单使用

[](#简单使用)

```
// 上传文件
$putObject = \think\facade\ObsClient::putObject('uploads/putobject-test.txt', 'fileContent');
// 如果成功
if(!is_null($putObject[0])){
    var_dump($putObject);
}
// 失败
else{
    // 错误信息
    echo $putObject[1]->getMessage();
}
```

### 高级使用

[](#高级使用)

```
// 动态切换平台
$obsClient = \think\facade\ObsClient::platform('baidu');

// 上传文件
$putObject = $ObsClient->putObject('uploads/putobject-test.txt', 'fileContent');
if(!is_null($putObject[0])){
    var_dump($putObject);
}
else{
    echo $putObject[1]->getMessage();
}
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

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/5bb2b3388238042a25cf42dc44e5ff84adc241510354abae9e91573556753205?d=identicon)[axguowen](/maintainers/axguowen)

---

Top Contributors

[![axguowen](https://avatars.githubusercontent.com/u/61955804?v=4)](https://github.com/axguowen "axguowen (12 commits)")

### Embed Badge

![Health badge](/badges/axguowen-think-obsclient/health.svg)

```
[![Health](https://phpackages.com/badges/axguowen-think-obsclient/health.svg)](https://phpackages.com/packages/axguowen-think-obsclient)
```

PHPackages © 2026

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