PHPackages                             xjaqil/huawei-obs-storage - 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. xjaqil/huawei-obs-storage

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

xjaqil/huawei-obs-storage
=========================

华为云OBS laravel filesystem 适配包

v1.0.1(5y ago)199MITPHPPHP ^7.3|^8.0

Since Feb 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/xjaqil/huawei-obs-storage)[ Packagist](https://packagist.org/packages/xjaqil/huawei-obs-storage)[ Docs](https://github.com/xjaqil/huawei-obs-storage)[ RSS](/packages/xjaqil-huawei-obs-storage/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

huawei-obs-storage
==================

[](#huawei-obs-storage)

Huawei Cloud OBS for Laravel
============================

[](#huawei-cloud-obs-for-laravel)

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

Requirement
===========

[](#requirement)

- PHP &gt;= 7.3

Installation
============

[](#installation)

```
$ composer require "xjaqil/huawei-obs-storage" -vvv
```

Configuration
=============

[](#configuration)

1. After installing the library, register the `Obs\ObsServiceProvider` in your `config/app.php` file:

```
'providers' => [
    // Other service providers...
    Obs\ObsServiceProvider::class,
],
```

2. Add a new disk to your `config/filesystems.php` config:

```
return [
   'disks' => [
       //...
       'obs' => [
           'driver' => 'obs',
           'key' => env('OBS_ACCESS_ID'), //
           'secret' => env('OBS_ACCESS_KEY'), //
           'bucket' => env('OBS_BUCKET'), //
           'endpoint' => env('OBS_ENDPOINT'), //  OBS �����ڵ���Զ����ⲿ����
           'cdn_domain' => env('OBS_CDN_DOMAIN'), // ���isCNameΪtrue, getUrl���ж�cdnDomain�Ƿ��趨���������ص�url�����cdnDomainδ���ã���ʹ��endpoint������url������ʹ��cdn
           'ssl_verify' => env('OBS_SSL_VERIFY'), //  true to use 'https://' and false to use 'http://'. default is false,
           'debug' => env('APP_DEBUG'), //
       ],
       //...
    ]
];
```

Usage
=====

[](#usage)

```
$disk = Storage::disk('obs');

// create a file
$disk->put('avatars/filename.jpg', $fileContents);

// check if a file exists
$exists = $disk->has('file.jpg');

// get timestamp
$time = $disk->lastModified('file1.jpg');
$time = $disk->getTimestamp('file1.jpg');

// copy a file
$disk->copy('old/file1.jpg', 'new/file1.jpg');

// move a file
$disk->move('old/file1.jpg', 'new/file1.jpg');

// get file contents
$contents = $disk->read('folder/my_file.txt');

// fetch url content
$file = $disk->fetch('folder/save_as.txt', $fromUrl);

// get file url
$url = $disk->getUrl('folder/my_file.txt');

// get file upload token
$token = $disk->getUploadToken('folder/my_file.txt');
$token = $disk->getUploadToken('folder/my_file.txt', 3600);

// get private url
$url = $disk->privateDownloadUrl('folder/my_file.txt');
```

License
=======

[](#license)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1912d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f51da84ed8f63229bdb750cba656f8b7695192c3811b2a4be0bb1fa6b6cf339?d=identicon)[xjaqil](/maintainers/xjaqil)

---

Top Contributors

[![xjaqil](https://avatars.githubusercontent.com/u/11239585?v=4)](https://github.com/xjaqil "xjaqil (1 commits)")

---

Tags

laravelstoragefilesystemshuaweiOBS

### Embed Badge

![Health badge](/badges/xjaqil-huawei-obs-storage/health.svg)

```
[![Health](https://phpackages.com/badges/xjaqil-huawei-obs-storage/health.svg)](https://phpackages.com/packages/xjaqil-huawei-obs-storage)
```

###  Alternatives

[jacobcyl/ali-oss-storage

aliyun oss filesystem storage for laravel 5+

523566.2k7](/packages/jacobcyl-ali-oss-storage)[dscmall/laravel-filesystem-obs

huawei cloud obs filesystem storage for laravel 5+

1523.1k1](/packages/dscmall-laravel-filesystem-obs)

PHPackages © 2026

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