Download the PHP package pmcaff/qiniu-laravel-storage without Composer
On this page you can find all versions of the php package pmcaff/qiniu-laravel-storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package qiniu-laravel-storage
Qiniu 云储存 Laravel 5 Storage版
基于 https://github.com/qiniu/php-sdk 开发
符合Laravel 5 的Storage用法。
注意
从七牛获取到的putTime
时间戳,是以 100纳秒 为单位的。
参考 https://developer.qiniu.com/kodo/api/1308/stat https://developer.qiniu.com/kodo/api/1284/list
PHP 可以用 Carbon Carbon::createFromTimestampMs($putTime/10000)
来保证最大精度
JavaScript 可以用 moment moment(putTime/10000)
来保证最大精度
更新
v0.10 支持“公开空间”的 CDN 时间戳防盗链
v0.9 兼容 Laravel 5.5 的自动包安装功能
v0.8
- 修正了getUrl
-
修正了最新的 Qiniu API 适配
v0.7
- 增加了 , 等命令。
-
修正了代码内的一些typo
v0.6 增加了, 命令。
v0.5 增加了来更方便的设置文件 URL 参数。
v0.3 增加了对PIPE以及回调地址参数的配置。 感谢abcsun提供的灵感。
v0.2 提供了对多域名的支持。这是为了配合七牛的默认域名、HTTPS域名和自定义域名而添加的功能。
安装
- 里面的 数组, 加上一行
-
里面的 数组加上:
- 完成
使用
第一种用法
第二种用法 (就是省略了一个getDriver)