PHPackages                             apady/bfs-php-sdk - 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. apady/bfs-php-sdk

ActiveLibrary

apady/bfs-php-sdk
=================

PHP SDK for Baidu File System.

v1.0.3(7y ago)3167MITPHPPHP ^7.1

Since Dec 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/apady/bfs-php-sdk)[ Packagist](https://packagist.org/packages/apady/bfs-php-sdk)[ RSS](/packages/apady-bfs-php-sdk/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

BFS-PHP-SDK
===========

[](#bfs-php-sdk)

PHP SDK for Baidu File System

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

[](#installation)

```
composer require apady/bfs-php-sdk

```

Usage
-----

[](#usage)

```
use BFS\FileSystem;
use BFS\Exception\IOExceptionInterface;

try{
  $bfs=new FileSystem('/home/bfs/sandbox/bfs.flag');
  $bfs->mkdir("/test");
  $bfs->fopen("/test/apady.txt","w");
	$bfs->fwrite("hello apady!!\n");
  $bfs->fclose();
}catch(IOExceptionInterface $exception){
	echo $exception->getMessage();
}
```

Dependency
----------

[](#dependency)

BFS SDK now offers `C/C++` API, as a result, using `BFS-PHP-SDK` resquires a [BFS PHP EXTENSION](https://github.com/apady/bfs-php-extension) as fundamental support. Running the following script can automatically install the php extension.

```
./autoinstall.sh

```

安装
--

[](#安装)

```
composer require apady/bfs-php-sdk

```

依赖
--

[](#依赖)

由于BFS SDK 只提供 `C/C++` API，使用`BFS-PHP-SDK` 需要有 [BFS PHP 扩展](https://github.com/apady/bfs-php-extension) 作为底层支持，执行以下脚本可自动完成PHP扩展的安装。

```
./autoinstall.sh

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~3 days

Total

4

Last Release

2711d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9c611b334c7cc90f8a61c8a25baea3a2cf66417dc33fdd1c50100585191ed0f?d=identicon)[apady](/maintainers/apady)

---

Top Contributors

[![apady](https://avatars.githubusercontent.com/u/45413681?v=4)](https://github.com/apady "apady (39 commits)")

### Embed Badge

![Health badge](/badges/apady-bfs-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/apady-bfs-php-sdk/health.svg)](https://phpackages.com/packages/apady-bfs-php-sdk)
```

PHPackages © 2026

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