tyangjawi03 / laravel-nextcloud
Laravel 5 NextCloud 文件系统
1.0.0
2021-07-02 03:11 UTC
Requires
- php: ~5.6|^7.0
- illuminate/filesystem: 5.0.* || 5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || 6.* || 7.*
- jakeasmith/http_build_url: ^1
- league/flysystem-webdav: ^1.0.8
Requires (Dev)
- orchestra/testbench: ^3.0
- phpunit/phpunit: ~5.0|~6.0|~7.0|~8.0
This package is auto-updated.
Last update: 2024-09-29 05:49:57 UTC
README
基于https://github.com/pascalbaljetmedia/laravel-webdav
安装
通过 Composer
$ composer require tyangjawi03/laravel-nextcloud
使用方法
在 app.php 配置文件中注册服务提供者
// config/app.php 'providers' => [ ... Jedlikowski\NextCloudStorage\NextCloudServiceProvider::class ... ];
创建 NextCloud 文件系统磁盘
// config/filesystems.php 'disks' => [ ... 'nextcloud' => [ 'driver' => 'nextcloud', 'baseUri' => 'https://mywebdavstorage.com', 'userName' => 'johndoe', 'password' => 'secret', 'pathPrefix' => '', // provide a subfolder name if your NextCloud instance isn't running directly on a domain, e.g. https://example.com/drive 'objectGuid' => 'OBJECT_GUID', // optional params, used when NextCloud instance is using AD/LDAP as Authentication provider so the webDav url will be look like e.g https://example.com/remote.php/dav/files/OBJECT_GUID/ ], ... ];
安全
如果您发现任何与安全相关的问题,请发送电子邮件至 jakub.jedlikowski@gmail.com 而不是使用问题跟踪器。
致谢
许可协议
MIT 许可协议(MIT)。有关更多信息,请参阅许可文件。