xiaj / laravel-seafile
laravel-seafile
v1.0
2020-11-27 02:18 UTC
Requires
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- nabil1337/case-helper: ~0.1
- sdo/bitmask: ^1.0
This package is not auto-updated.
Last update: 2025-03-29 22:54:25 UTC
README
laravel-seafile包是对seafile云盘接口的简单封装
1、配置参数
SEAFILE_HOST:seafile地址 xx.xx.xx.xx
SEAFILE_PORT:seafile端口
SEAFILE_USER:seafile用户名
SEAFILE_PASSWORD:seafile密码
2、上传文件到seafile
Seafile::uploadFile(文件路径,上传到的目录);
Seafile::uploadFile(public_path('robots.txt'),'/test1');
3、获取文件的下载地址
Seafile::getDownloadUrl(文件在云盘的相对路径);
Seafile::getDownloadUrl('/test1/robots.txt');