PHPackages                             telstatic/rakan - 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. telstatic/rakan

Abandoned → [telstatic/rakan](/?search=telstatic%2Frakan)Library[File &amp; Storage](/categories/file-storage)

telstatic/rakan
===============

Laravel 文件系统扩展,适配 阿里云OSS,七牛云KODO,腾讯云COS,华为云OBS

2.2.21(4y ago)241.7k7[2 issues](https://github.com/TELstatic/rakan/issues)[1 PRs](https://github.com/TELstatic/rakan/pulls)MITPHPPHP ^7.1CI passing

Since Dec 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/TELstatic/rakan)[ Packagist](https://packagist.org/packages/telstatic/rakan)[ RSS](/packages/telstatic-rakan/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (41)Used By (0)

rakan
=====

[](#rakan)

> Laravel 文件系统扩展包 + 文件管理系统

 [![StyleCI Shield](https://camo.githubusercontent.com/cc8b2d9e1db8c9583cd631fca24bc876e5ffaf67fd36773485ba0124e13fa6a8/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3133373034303731372f736869656c643f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/cc8b2d9e1db8c9583cd631fca24bc876e5ffaf67fd36773485ba0124e13fa6a8/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3133373034303731372f736869656c643f6272616e63683d6d6173746572) [![licence](https://camo.githubusercontent.com/0b6426e26e47d21d4da5e2b23ade997565f738fb66e216b7d9e0c2e673f1eb06/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74656c7374617469632f72616b616e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/0b6426e26e47d21d4da5e2b23ade997565f738fb66e216b7d9e0c2e673f1eb06/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74656c7374617469632f72616b616e2e7376673f7374796c653d666c61742d737175617265) [![licence](https://camo.githubusercontent.com/07d1528b23bd9ca17bfb8190a76c5e5d44775b91e1d563425e27ee78d7394e2f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f74656c7374617469632f72616b616e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/07d1528b23bd9ca17bfb8190a76c5e5d44775b91e1d563425e27ee78d7394e2f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f74656c7374617469632f72616b616e2e7376673f7374796c653d666c61742d737175617265) [![code size](https://camo.githubusercontent.com/7f11cea0c1442e50a9c61eb82c9e3af4a590535c67b678ad50360e57fe2798ba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f74656c7374617469632f72616b616e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/7f11cea0c1442e50a9c61eb82c9e3af4a590535c67b678ad50360e57fe2798ba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f74656c7374617469632f72616b616e2e7376673f7374796c653d666c61742d737175617265) [![downloads](https://camo.githubusercontent.com/d58454caf045feaf0f22352beac0c3e8d18013a6c7c4c0b740fe6376e7485c30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74656c7374617469632f72616b616e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/d58454caf045feaf0f22352beac0c3e8d18013a6c7c4c0b740fe6376e7485c30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74656c7374617469632f72616b616e2e7376673f7374796c653d666c61742d737175617265) [![downloads](https://camo.githubusercontent.com/f6cdd8e113acd1551d5e83fe863e9a0551e476c5f459b049682ef0b59289447d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f74656c7374617469632f72616b616e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/f6cdd8e113acd1551d5e83fe863e9a0551e476c5f459b049682ef0b59289447d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f74656c7374617469632f72616b616e2e7376673f7374796c653d666c61742d737175617265) [![downloads](https://camo.githubusercontent.com/f9f27121981f84a902d9e62ac6c768056e4047fe65d33c61d1119da628e0cbcd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f74656c7374617469632f72616b616e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/f9f27121981f84a902d9e62ac6c768056e4047fe65d33c61d1119da628e0cbcd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f74656c7374617469632f72616b616e2e7376673f7374796c653d666c61742d737175617265)

> 适配阿里云OSS,七牛云

- [安装](#installation)
- [使用](#usage)
- [属性](#props)
- [配置](#env)
- [方法](#function)

    - [设置网关](#setGateway)
    - [设置目录前缀](#setPrefix)
    - [设置模块](#setModule)
    - [获取文件列表](#getFiles)
    - [获取上传策略](#getPolicy)
    - [创建目录](#createFolder)
    - [检查文件唯一性](#checkFile)
    - [删除文件及目录](#deleteFiles)
- [路由](#router)
- [文件系统](#filesystem)
- [TODO](#todo)
- [感谢](#thanks)
- [资料](#doc)

### 简介

[](#简介)

```
通用文件管理器,支持阿里云OSS,七牛云,腾讯,华为 直传

```

### 安装

[](#安装)

```
composer require telstatic/rakan

```

### 配置

[](#配置)

```
修改config/filessystems.php,disk中添加
'oss' => [
    'driver' => 'oss'
],
'qiniu' => [
    'driver' => 'qiniu'
],

```

### 使用

[](#使用)

```
Model user.php
