Download the PHP package timeshow/laravel-filesystem without Composer
On this page you can find all versions of the php package timeshow/laravel-filesystem. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download timeshow/laravel-filesystem
More information about timeshow/laravel-filesystem
Files in timeshow/laravel-filesystem
Package laravel-filesystem
Short Description laravel文件上传系统
License MIT
Informations about the package laravel-filesystem
Laravel Filesystem
Version Compatibility
Laravel | Package |
---|---|
9.0 | 0.2.0 |
10.0 | last version |
Require
Installation In order to install, just install
Install
Via Composer
Then in your config/app.php add this line to providers array:
Configuration
Add the following in app/filesystems.php:
Then in your .env add this lines to the bottom:
Then you can set the default driver in app/filesystems.php:
Ok, well! You are finish to configure. Just feel free to use Aliyun OSS like Storage!
Base Usage
First you must use Storage facade
Then You can use all APIs of laravel Storage
Advanced Features
you must use Adapter
Full AliYun OSS Processing Capabilities
you can use more processing capabilities
Please refer to the official SDK manual : https://help.aliyun.com/document_detail/32100.html?spm=a2c4g.11186623.6.1055.66b64a49hkcTHv
Web Configuration
Callback Verification
当设置了直传回调后,可以通过验签插件,验证并获取 oss 传回的数据 文档 注意事项:
如果没有 Authorization 头信息导致验签失败需要先在 apache 或者 nginx 中设置 rewrite 以 apache 为例,修改 httpd.conf 在 DirectoryIndex index.php 这行下面增加「RewriteEngine On」「RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization},last]」
直传回调验签后返回给前端的数据「包括自定义参数」,例如
前端直传组件分享「vue + element」
All versions of laravel-filesystem with dependencies
ext-curl Version *
ext-json Version *
php Version ^8.1
illuminate/support Version ^9.0 | ^10.0
league/flysystem Version ^3.0
aliyuncs/oss-sdk-php Version ^2.6