Download the PHP package zijinghua-dev/zfilesystem without Composer
On this page you can find all versions of the php package zijinghua-dev/zfilesystem. 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 zfilesystem
File System Package
Install
- 安装命令
composer require zijinghua-dev/zfilesystem
Update
-
更新命令
composer update zijinghua-dev/zfilesystem
-
迁移数据
php artisan zfilesystem:install
-
修改.env环境变量
.env增加FILESYSTEM_DRIVER
FILESYSTEM_DRIVER=oss
将下面的参数放到.env最后面
#ALIYUN ALIYUN_ACCESS_KEY_ID=你自己的oss key id ALIYUN_ACCESS_KEY_SECRET=你自己的oss secret #ALIYUN OSS ALIYUN_OSS_BUCKET=你自己的oss bucket ALIYUN_OSS_ENDPOINT_EXTERNAL=你自己的oss外网地址 ALIYUN_OSS_ENDPOINT_INTERNAL=null ALIYUN_OSS_CDN_DOMAIN= ALIYUN_OSS_CDN_DOMAIN_ENABLE=false
- 修改config/filesystem.php
在config/filesystem.php的disk数组中增加如下配置
'oss' => [ 'driver' => 'oss', 'access_id' => env('ALIYUN_ACCESS_KEY_ID'), 'access_key' => env('ALIYUN_ACCESS_KEY_SECRET'), 'bucket' => env('ALIYUN_OSS_BUCKET'), 'endpoint' => env('ALIYUN_OSS_ENDPOINT_EXTERNAL'), // OSS 外网节点或自定义外部域名 'endpoint_internal' => env('ALIYUN_OSS_ENDPOINT_INTERNAL'), // v2.0.4 新增配置属性,如果为空,则默认使用 endpoint 配置(由于内网上传有点小问题未解决,请大家暂时不要使用内网节点上传,正在与阿里技术沟通中) 'cdnDomain' => env('ALIYUN_OSS_CDN_DOMAIN'), // 如果isCName为true, getUrl会判断cdnDomain是否设定来决定返回的url,如果cdnDomain未设置,则使用endpoint来生成url,否则使用cdn 'ssl' => true, // true to use 'https://' and false to use 'http://'. default is false, 'isCName' => env('ALIYUN_OSS_CDN_DOMAIN_ENABLE', false), // 是否使用自定义域名,true: 则Storage.url()会使用自定义的cdn或域名生成文件url, false: 则使用外部节点生成url 'debug' => false, 'prefix' => env('SERVICE_OSS_SAVE_PATH'), ],
All versions of zfilesystem with dependencies
PHP Build Version
Package Version
Requires
illuminate/support Version
~5.5|~6.0
guzzlehttp/guzzle Version ^6.3
jacobcyl/ali-oss-storage Version ^2.1
guzzlehttp/guzzle Version ^6.3
jacobcyl/ali-oss-storage Version ^2.1
The package zijinghua-dev/zfilesystem contains the following files
Loading the files please wait ....