PHPackages                             hinet/laravel-baidu-bos - 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. hinet/laravel-baidu-bos

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

hinet/laravel-baidu-bos
=======================

A Flysystem Baidu Bos Wrapper for Laravel

0214PHP

Since Apr 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/hinet/laravel-baidu-bos)[ Packagist](https://packagist.org/packages/hinet/laravel-baidu-bos)[ RSS](/packages/hinet-laravel-baidu-bos/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-baidu-bos
=================

[](#laravel-baidu-bos)

Laravel百度云文件存储引擎

[![Author](https://camo.githubusercontent.com/30edd2a2b803dfdb74100191d29af5e2fdaf7db8eb652abad2d58c6c94046587/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d4068696e65742d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/hinet)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/50cab9f3ad275422546270eb8c32f2a2be0e4fb45ef21e12ee989a545aa52494/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68696e65742f6c61726176656c2d62616964752d626f732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hinet/laravel-baidu-bos)[![Total Downloads](https://camo.githubusercontent.com/39c7a61f714c232f66029f158fa41c2ea911502a2446f3d105d5fcd054b3a11c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68696e65742f6c61726176656c2d62616964752d626f732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hinet/laravel-baidu-bos)

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

[](#installation)

```
composer require "hinet/laravel-baidu-bos": "~1.0"
```

or add the following line to your project's `composer.json`:

```
"require": {
   "hinet/laravel-baidu-bos": "~1.0"
}
```

then

```
composer update
```

After completion of the above, add the following line to the section `providers` of `config/app.php`:

```
Hinet\Baidu\BaiduServiceProvider::class,
```

Configuration
-------------

[](#configuration)

Edit `config\filesystems.php`: Add bos disk

```
	'disks' => [

		'local' => [
			'driver' => 'local',
			'root'   => storage_path().'/app',
		],

		's3' => [
			'driver' => 's3',
			'key'    => 'your-key',
			'secret' => 'your-secret',
			'region' => 'your-region',
			'bucket' => 'your-bucket',
		],

		'rackspace' => [
			'driver'    => 'rackspace',
			'username'  => 'your-username',
			'key'       => 'your-key',
			'container' => 'your-container',
			'endpoint'  => 'https://identity.api.rackspacecloud.com/v2.0/',
			'region'    => 'IAD',
			'url_type'  => 'publicURL'
		],

		'bos' => [
			'driver' => 'bos',
			'bucket' => 'your-bucket-name',
			'options' => [
				'credentials' => [
					'ak' => 'your-ak',
					'sk' => 'your-sk',
				],
				'endpoint' => 'http://bj.bcebos.com',
			]
		],
	],
```

Usage
-----

[](#usage)

```
$exists = Storage::disk('bos')->exists('path/to/file');
$content = Storage::disk('bos')->get('path/to/file');
```

Official Documentation
----------------------

[](#official-documentation)

Documentation for laravel framework 'Filesystem/Cloud Storage' can be found on the [Laravel website](http://laravel.com/docs/5.0/filesystem).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

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/85a6bc2552f88eb20f4f5c6633812ba9693a876f16acb38b43497116a688d28a?d=identicon)[hinet](/maintainers/hinet)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/hinet-laravel-baidu-bos/health.svg)

```
[![Health](https://phpackages.com/badges/hinet-laravel-baidu-bos/health.svg)](https://phpackages.com/packages/hinet-laravel-baidu-bos)
```

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

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