Download the PHP package houdunwang/uploader without Composer
On this page you can find all versions of the php package houdunwang/uploader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download houdunwang/uploader
More information about houdunwang/uploader
Files in houdunwang/uploader
Download houdunwang/uploader
More information about houdunwang/uploader
Files in houdunwang/uploader
Please rate this library. Is it a good library?
Informations about the package uploader
上传组件
方便的多网关上传组件,目前支持阿里云OSS,以后支持腾讯云等多平台上传处理。
开发作者:向军大叔
功能特点
- 支持多网关处理
- 提供provider与facade支持,完美集成Laravel框架
- 测试全覆盖,保证代码健壮
- 发布packagist.org
- 使用简单可快速集成到项目中
软件安装
使用 composer 安装软件包
组件配置
组件会自动发布配置文件 uploader.php
到项目的 config
目录中,需要先进行相应配置。
也可以使用以下方式手动发布配置:
设置 config/uploader.php
文件中的上传配置项。
阿里云
- 在
访问控制
中添加一个新帐号 - 获得帐号的
accessKeyId
与accessKeySecret
资料设置到配置文件中 - 赋予新增的帐号
oss
使用权限。 - 在
oss
服务中新增bucket
块 - 为新增的
bucket
块配置跨域访问权限 - 设置块为
公共读
- 将
外网访问
配置项中的EndPoint
设置到配置文件中的endpoint
项
使用示例
下面以阿里云上传为例介绍使用方法。
使用Facade
调用
使用 provider
服务调用
All versions of uploader with dependencies
PHP Build Version
Package Version
Requires
aliyuncs/oss-sdk-php Version
^2.3
guzzlehttp/guzzle Version ^6.3
mockery/mockery Version ^1.2
guzzlehttp/guzzle Version ^6.3
mockery/mockery Version ^1.2
The package houdunwang/uploader contains the following files
Loading the files please wait ....