PHPackages                             jasonc/laravel-filesystem-oss - 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. jasonc/laravel-filesystem-oss

ActiveLibrary

jasonc/laravel-filesystem-oss
=============================

Oss storage filesystem for Laravel.

3.0.2(4y ago)0205↓100%MITPHPPHP ^7.0|^8.0

Since Dec 29Pushed 4y agoCompare

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

READMEChangelog (3)Dependencies (1)Versions (12)Used By (0)

laravel filesystem oss
======================

[](#laravel-filesystem-oss)

[AliOss](https://www.aliyun.com/product/oss) storage for Laravel based on [iidestiny/flysystem-oss](https://github.com/iiDestiny/flysystem-oss).

[![](https://camo.githubusercontent.com/8c128ec0bc47879e9f918a63076fb4168501ed57938c0a8dca1a9aed069e44a4/68747470733a2f2f7472617669732d63692e6f72672f696944657374696e792f666c7973797374656d2d6f73732e7376673f6272616e63683d6d6173746572)](https://github.com/iiDestiny/flysystem-oss)[![](https://camo.githubusercontent.com/62912cb4a11a58a80b0883f19848a7d1eed59542c3649aafb6259f5e395467b8/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136333530313131392f736869656c64)](https://github.com/iiDestiny/flysystem-oss)[![](https://camo.githubusercontent.com/5f5481a04e257760b436041b406bcad5213d58d70a331792eedfd76816cc4eda/68747470733a2f2f706f7365722e707567782e6f72672f696964657374696e792f6c61726176656c2d66696c6573797374656d2d6f73732f762f737461626c65)](https://github.com/iiDestiny/laravel-filesystem-oss)[![](https://camo.githubusercontent.com/78577b6b717b38a17f7f3f55cc320fa339237fd978830f64b804e8c6720043d6/68747470733a2f2f706f7365722e707567782e6f72672f696964657374696e792f6c61726176656c2d66696c6573797374656d2d6f73732f646f776e6c6f616473)](https://github.com/iiDestiny/laravel-filesystem-oss)[![](https://camo.githubusercontent.com/700bed9e8a46acab207de58a8ea027973190c02a64e51ecf1296e87dc67daa2a/68747470733a2f2f706f7365722e707567782e6f72672f696964657374696e792f6c61726176656c2d66696c6573797374656d2d6f73732f762f756e737461626c65)](https://github.com/iiDestiny/laravel-filesystem-oss)[![](https://camo.githubusercontent.com/cb1bcb4cebb76a917e3422bee59e37fabdfe320244ac9f4d10d26450b539b42e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696944657374696e792f666c7973797374656d2d6f73732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/iiDestiny/flysystem-oss/?branch=master)[![](https://camo.githubusercontent.com/a8a6219cf0313b681948382bcbcc27a34ae00572d463437bd92ebb1df58647c9/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f76312f6f70656e2d736f757263652e7376673f763d313033)](https://github.com/iiDestiny/laravel-filesystem-oss)[![](https://camo.githubusercontent.com/2873f6e58da011fd2fce1f5bd9195f878b00350e635bafd679952a21c0623612/68747470733a2f2f706f7365722e707567782e6f72672f696964657374696e792f6c61726176656c2d66696c6573797374656d2d6f73732f6c6963656e7365)](https://github.com/iiDestiny/laravel-filesystem-oss)

感谢关注「GitHub 热门」公众号，带你了解技术圈内热门新鲜事！
[![](https://camo.githubusercontent.com/402b68eecf0ecdce4dbd6f633a2a4fbd1a7cffb2f636fdb97e80e1191eee724a/68747470733a2f2f63646e2e6c6561726e6b752e636f6d2f75706c6f6164732f696d616765732f3230323031312f30392f343433302f717345437739437467762e6a7067216c61726765)](https://camo.githubusercontent.com/402b68eecf0ecdce4dbd6f633a2a4fbd1a7cffb2f636fdb97e80e1191eee724a/68747470733a2f2f63646e2e6c6561726e6b752e636f6d2f75706c6f6164732f696d616765732f3230323031312f30392f343433302f717345437739437467762e6a7067216c61726765)

扩展包要求
-----

[](#扩展包要求)

- PHP &gt;= 7.0

安装命令
----

[](#安装命令)

```
$ composer require "iidestiny/laravel-filesystem-oss" -vvv
```

配置
--

[](#配置)

1. 将服务提供者 `Iidestiny\LaravelFilesystemOss\OssStorageServiceProvider::class` 注册到 `config/app.php` 文件:

```
'providers' => [
    // Other service providers...
    Iidestiny\LaravelFilesystemOss\OssStorageServiceProvider::class,
],
```

> Laravel 5.5+ 会自动注册服务提供者可过滤

2. 在 `config/filesystems.php` 配置文件中添加你的新驱动

```
