makville/cakephp-storage-plugin

CakePHP的MakvilleStorage插件

2.0.0 2020-01-18 12:47 UTC

This package is auto-updated.

Last update: 2024-09-10 19:28:47 UTC


README

安装

您可以使用 composer 将此插件安装到您的CakePHP应用程序中。

安装composer包的推荐方法是

composer require makville/cakephp-storage-plugin

配置AWS存储桶

Configure::write('aws_key', 'key');
Configure::write('aws_secret', 'secret');
Configure::write('aws_bucket', 'root bucket'); //the website e.g example.com is a good choice.
Configure::write('aws_version', '2006-03-01'); //use this like this
Configure::write('aws_region', 'region'); //e.g us-west-2