PHPackages                             hinink/laravel-seafile - 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. hinink/laravel-seafile

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

hinink/laravel-seafile
======================

seaFile for laravel storage

v1.0.0(2y ago)111MITPHPPHP &gt;=7.4

Since Dec 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/hinink/laravel-seafile)[ Packagist](https://packagist.org/packages/hinink/laravel-seafile)[ RSS](/packages/hinink-laravel-seafile/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Flysystem Adapter for SeaFile
-----------------------------

[](#flysystem-adapter-for-seafile)

### Requirement

[](#requirement)

```
PHP >= 7.4
Laravel >= 6
```

### Installation

[](#installation)

```
composer require "hinink/laravel-seafile"
```

### Usages

[](#usages)

> SeaFile Api Doc

- [Upload Usage](https://download.seafile.com/published/web-api/v2.1/file-upload.md#user-content-Update%20File)

```
    $storage = Storage::disk('seafile');

    $storage->put('save file path', 'contents');

    $storage->putFileAs('save path', 'file', 'save name');

    $storage->getMetadata('file path');

    $storage->getSize('file path');

    $storage->getTimestamp('file path');

    $storage->getMimetype('file path');

    $storage->listContents('path');

    $storage->directories('path');

    $storage->files('path');

    $storage->exists('file path');

    $storage->makeDirectory('dir name');

    $storage->delete('file path');

    $storage->deleteDir('dir name');

    $storage->getUploadUrl();

    $storage->rename('file path', 'new name')

    $storage->url('file path');        # Disposable
    $storage->url(['url'=>'file path','cache'=>true]);  # Valid for one hour
```

#### Config filesystems.php add

[](#config-filesystemsphp-add)

```
'disks'=>[
     ....

    'seafile' => [
        'driver'   => 'seaFile',                    # 必须
        'server'   => env('SEAFILE_SERVER', ''),    # 必须
        'username' => env('SEAFILE_USER', ''),      #
        'password' => env('SEAFILE_PASSWORD', ''),
        'token'    => env('SEAFILE_TOKEN', ''),     #
        'repo_id'  => env('SEAFILE_REPO_ID', ''),   # 必须
    ],

   ...
]
```

> Token or username password method

#### Direct file transmission

[](#direct-file-transmission)

1. getUploadUrl

```
    $upload_url = Storage::disk('seafile')->getUploadUrl();
```

2. upload file

```
    post $upload_url
    url params: ret-json=1  返回 json
    body params
         'file': (filename, fileobj),
         'parent_dir':  保存的父级地址 固定值 '/'
         'relative_path': 文件保存路径
         'replace': 1,0  是否覆盖

    respon
        json [{"name": "1.mp4", "id": "4f5022acac09f3112c02f07ee09d8d093064e4ad", "size": 302668280}]
        str  4f5022acac09f3112c02f07ee09d8d093064e4ad

```

Refer To
--------

[](#refer-to)

- [overtrue/flysystem-qiniu](https://github.com/overtrue/flysystem-qiniu)
- [rsd/seafile-php-sdk](https://github.com/Schmidt-DevOps/Seafile-PHP-SDK)

### License

[](#license)

```
MIT
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

925d ago

### Community

Maintainers

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

---

Top Contributors

[![hinink](https://avatars.githubusercontent.com/u/19699252?v=4)](https://github.com/hinink "hinink (12 commits)")

---

Tags

laravelsdkstorageseafile

### Embed Badge

![Health badge](/badges/hinink-laravel-seafile/health.svg)

```
[![Health](https://phpackages.com/badges/hinink-laravel-seafile/health.svg)](https://phpackages.com/packages/hinink-laravel-seafile)
```

###  Alternatives

[zgldh/qiniu-laravel-storage

Qiniu Resource (Cloud) Storage SDK for Laravel 5/6/7/8/9

515401.1k14](/packages/zgldh-qiniu-laravel-storage)[rsd/seafile-php-sdk

This is a PHP package for accessing Seafile Web API

3596.1k](/packages/rsd-seafile-php-sdk)[itbdw/laravel-storage-qiniu

A storage library for laravel5 and qiniu sdk

7515.3k](/packages/itbdw-laravel-storage-qiniu)

PHPackages © 2026

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