Download the PHP package mryup/filestore without Composer
On this page you can find all versions of the php package mryup/filestore. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package filestore
更新
-
移除本地存储, 要存储在本地,用
hf
的方法就好了。 -
增加cos存储
-
增加
put
方法 - 改善之前的代码
安装
composer require mryup/filestore
php bin/hyperf.php vendor:publish mryup/filestore
// 发布配置 - 配置
config/autoload/filestore.php
//配置oss
控制器使用
使用cos
-
新增
config/autoload/dependencies.php
配置 - 配置
config/autoload/filestore.php
的cos
的信息
扩展方法 或者 重写 (以oss为例)
-
随便创建一个文件 例:
app/Services/OssFileStoreService.php
-
修改
config/autoload/dependencies.php
为 OssFileStoreService.php内容
扩展提供的方法
超过2m无法上传
默认只能上传2M的文件, 请看swoole文档 (package_max_length)
可在config/server.php的
All versions of filestore with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
ext-swoole Version >=4.4
aliyuncs/oss-sdk-php Version ^2.3
qcloud/cos-sdk-v5 Version 2.*
ext-swoole Version >=4.4
aliyuncs/oss-sdk-php Version ^2.3
qcloud/cos-sdk-v5 Version 2.*
The package mryup/filestore contains the following files
Loading the files please wait ....