PHPackages                             yzh52521/flysystem-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. [File &amp; Storage](/categories/file-storage)
4. /
5. yzh52521/flysystem-obs

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

yzh52521/flysystem-obs
======================

Flysystem adapter for the obs storage.

v3.0.0(3y ago)111.7k—0%12MITPHPPHP ^8.0

Since Nov 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/yzh52521/filesystem-obs)[ Packagist](https://packagist.org/packages/yzh52521/flysystem-obs)[ Docs](https://github.com/yzh52521/flysystem-obs)[ RSS](/packages/yzh52521-flysystem-obs/feed)WikiDiscussions v3 Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (12)Used By (12)

filesystem-obs
==============

[](#filesystem-obs)

- PHP &gt;= 8.0+
- League/Flysystem &gt; 3.10+

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

[](#installation)

```
composer require yzh52521/flysystem-obs

```

Usage
-----

[](#usage)

```
use League\Flysystem\Filesystem;
use Obs\ObsClient;
use yzh52521\Flysystem\Obs\ObsAdapter;

$prefix = '';
$config = [
    'key' => 'aW52YWxpZC1rZXk=',
    'secret' => 'aW52YWxpZC1zZWNyZXQ=',
    'bucket' => 'test',
    'endpoint' => 'obs.cn-east-3.myhuaweicloud.com',
];

$config['options'] = [
    'url' => '',
    'endpoint' => $config['endpoint'],
    'bucket_endpoint' => '',
    'temporary_url' => '',
];

$client = new ObsClient($config);
$adapter = new ObsAdapter($client, $config['bucket'], $prefix, null, null, $config['options']);
$flysystem = new Filesystem($adapter);
```

API
---

[](#api)

```
bool $flysystem->write('file.md', 'contents');

bool $flysystem->write('file.md', 'http://httpbin.org/robots.txt', ['mime' => 'application/redirect302']);

bool $flysystem->writeStream('file.md', fopen('path/to/your/local/file.jpg', 'r'));

bool $flysystem->update('file.md', 'new contents');

bool $flysystem->updateStream('file.md', fopen('path/to/your/local/file.jpg', 'r'));

bool $flysystem->rename('foo.md', 'bar.md');

bool $flysystem->copy('foo.md', 'foo2.md');

bool $flysystem->delete('file.md');

bool $flysystem->has('file.md');

string|false $flysystem->read('file.md');

array $flysystem->listContents();

array $flysystem->getMetadata('file.md');

int $flysystem->getSize('file.md');

string $flysystem->getUrl('file.md');

string $flysystem->getMimetype('file.md');

int $flysystem->getTimestamp('file.md');
```

License
-------

[](#license)

MIT

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~38 days

Recently: every ~14 days

Total

11

Last Release

1267d ago

Major Versions

1.0 → 2.02021-11-03

1.x-dev → v2.0.12022-09-26

v1.1.1 → v2.0.22022-09-26

v2.x-dev → v3.0.02022-11-19

PHP version history (5 changes)1.0PHP &gt;=7.1.0

2.0PHP &gt;=7.2.0

v2.0.1PHP ^7.2|^8.0

v2.x-devPHP ^7.2||^8.0

v3.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/052aa4acd90ad5d672ae5abe8d27d1f576f9c07e1967e2f6bced03b84079310f?d=identicon)[yuanzhihai](/maintainers/yuanzhihai)

---

Top Contributors

[![yuanzhihai](https://avatars.githubusercontent.com/u/15060466?v=4)](https://github.com/yuanzhihai "yuanzhihai (16 commits)")

---

Tags

Flysystemflysystem-obsobs-oss

### Embed Badge

![Health badge](/badges/yzh52521-flysystem-obs/health.svg)

```
[![Health](https://phpackages.com/badges/yzh52521-flysystem-obs/health.svg)](https://phpackages.com/packages/yzh52521-flysystem-obs)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M784](/packages/league-flysystem-aws-s3-v3)[league/flysystem-local

Local filesystem adapter for Flysystem.

226231.8M39](/packages/league-flysystem-local)[oneup/flysystem-bundle

Integrates Flysystem filesystem abstraction library to your Symfony project.

64422.9M65](/packages/oneup-flysystem-bundle)[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40029.5M86](/packages/league-flysystem-bundle)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[spatie/flysystem-dropbox

Flysystem Adapter for the Dropbox v2 API

3644.6M68](/packages/spatie-flysystem-dropbox)

PHPackages © 2026

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