PHPackages                             wangqs/laravel-filesystem-obs - 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. wangqs/laravel-filesystem-obs

ActiveLibrary

wangqs/laravel-filesystem-obs
=============================

真正可用的Laravel 5+ 华为OBS存储 For Filesystem

v3.0.1(5y ago)220MITPHPPHP ^7.2

Since Mar 3Pushed 5y agoCompare

[ Source](https://github.com/wqsacy/laravel-filesystem-obs)[ Packagist](https://packagist.org/packages/wangqs/laravel-filesystem-obs)[ RSS](/packages/wangqs-laravel-filesystem-obs/feed)WikiDiscussions master Synced today

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

Laravel-HuaWeiOBS
=================

[](#laravel-huaweiobs)

[Huawei Cloud OBS](https://support.huaweicloud.com/devg-obs_php_sdk_doc_zh/zh-cn_topic_0132036136.html) storage for Laravel based on [wangqs/laravel-filesystem-obs](https://github.com/wqsacy/laravel-filesystem-obs).

Installation and Configuration
------------------------------

[](#installation-and-configuration)

Install the current version of the `goodgay/huaweiobs` package via composer:

```
composer require wangqs/laravel-filesystem-obs
```

### Laravel

[](#laravel)

The package's service provider will automatically register its service provider.

Publish the configuration file:

```
php artisan vendor:publish --provider="Wangqs\HuaweiOBS\HWOBSServiceProvider"
```

##### Alternative configuration method via .env file

[](#alternative-configuration-method-via-env-file)

After you publish the configuration file as suggested above, you may configure OBS by adding the following to your application's `.env` file (with appropriate values):

```
HWOBS_ACCESS_KEY_ID=xxxxxxxx
HWOBS_SECRET_ACCESS_KEY=xxxxxxx
HWOBS_DEFAULT_REGION=region
HWOBS_BUCKET=test
HWOBS_URL=
HWOBS_ENDPOINT=https://obs.xxxxx.myhuaweicloud.com
```

### Lumen

[](#lumen)

If you work with Lumen, please register the service provider and configuration in `bootstrap/app.php`:

```
$app->register(Wangqs\HuaweiOBS\HWOBSServiceProvider::class);
$app->configure('hwobs');
```

Manually copy the configuration file to your application.

Usage
-----

[](#usage)

The `HWobs` facade is just an entry point into the [php-obs sdk](https://github.com/huaweicloud/huaweicloud-sdk-php-obs), so previously you might have used:

```
use Wangqs\ObsV3\ObsClient;
$obsClient = ObsClient::factory ( [
		'key' => $ak,
		'secret' => $sk,
		'endpoint' => $endpoint,
		'socket_timeout' => 30,
		'connect_timeout' => 10
] );

$resp = $obsClient -> listObjects(['Bucket' => $bucketName]);
foreach ( $resp ['Contents'] as $content ) {
    printf("\t%s etag[%s]\n", $content ['Key'], $content ['ETag']);
}
printf("\n");

```

You can now replace those last two lines with simply:

```
use Wangqs\HuaweiOBS\HWobs;

$return = HWobs::all();

//or

$return = HWobs::obs()->listObjects(['Bucket' => $bucketName]);
```

Lumen users who wish to use Facades can do so by editing the `bootstrap/app.php` file to include the following:

```
$app->withFacades(true,[
     Wangqs\HuaweiOBS\HWobs::class  => 'Hwobs'
]);
```

```
// 文件系统的配置文件位于 config/filesystems.php
'hwobs' => [
    'driver'    => 'hwobs',
    'key'       => env('HWOBS_ACCESS_KEY_ID',''),
    'secret'    => env('HWOBS_SECRET_ACCESS_KEY',''),
    'region'    => env('HWOBS_DEFAULT_REGION',''),
    'bucket'    => env('HWOBS_BUCKET',''),
    'url'       => env('HWOBS_URL',''),
    'endpoint'  => env('HWOBS_ENDPOINT',''),
    'exceptionResponseMode'  => false,
],

Storage::disk('hwobs')->put('file.txt', 'Contents');
```

Advanced Usage
--------------

[](#advanced-usage)

Because the package is a wrapper around the official php-obs sdk, you can do pretty much anything with this package.

To upload:

```
$resp = HWobs::putText("object-name","some content");
$resp = HWobs::putFile("object-name","./some.txt");
```

To download:

```
$resp = HWobs::getText("object-name");
$resp = HWobs::getStream("object-name");
$resp = HWobs::getFile("object-name",'save_path.txt');
```

To manage objects:

```
$resp = HWobs::getMetadata("object-name");
$resp = HWobs::delete("object-name");
$resp = HWobs::all();
$resp = HWobs::deleteMulti(['object-name1','object-name2']);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

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

Every ~0 days

Total

5

Last Release

1893d ago

Major Versions

v1.0.3 → v2.0.12021-03-03

v2.0.1 → v3.0.12021-03-03

PHP version history (2 changes)v1.0.1PHP ^7.1

v1.0.3PHP ^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38206909?v=4)[qishan.wang](/maintainers/wqsacy)[@wqsacy](https://github.com/wqsacy)

---

Top Contributors

[![wqsacy](https://avatars.githubusercontent.com/u/38206909?v=4)](https://github.com/wqsacy "wqsacy (14 commits)")[![x00403408](https://avatars.githubusercontent.com/u/44666668?v=4)](https://github.com/x00403408 "x00403408 (13 commits)")[![shenqing-github](https://avatars.githubusercontent.com/u/45023782?v=4)](https://github.com/shenqing-github "shenqing-github (2 commits)")[![glovethu](https://avatars.githubusercontent.com/u/11626306?v=4)](https://github.com/glovethu "glovethu (1 commits)")

---

Tags

laravelOBShuaweiobsesdk-obs-php

### Embed Badge

![Health badge](/badges/wangqs-laravel-filesystem-obs/health.svg)

```
[![Health](https://phpackages.com/badges/wangqs-laravel-filesystem-obs/health.svg)](https://phpackages.com/packages/wangqs-laravel-filesystem-obs)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M73](/packages/unisharp-laravel-filemanager)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/vapor-cli

The Laravel Vapor CLI

31310.7M8](/packages/laravel-vapor-cli)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M368](/packages/laravel-zero-framework)

PHPackages © 2026

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