samsonphp/fs_aws

SamsonPHP AWS 文件系统服务

1.0.9 2016-06-03 17:22 UTC

This package is not auto-updated.

Last update: 2024-09-14 16:55:31 UTC


README

#SamsonPHP AWS 文件服务模块

这是 SamsonPHP 中 Amazon AWS S3 存储桶的文件服务实现。这是标准 PHP 文件函数之上的抽象层。

Latest Stable Version Build Status Code Coverage Scrutinizer Code Quality Stories in Ready Total Downloads

##配置

这是通过 SamsonPHP 配置系统 实现的。

在所有必须基于 php_fs 模块构建的嵌套 php_fs_* 模块中,所有配置都针对主要的 SamsonPHP 文件服务模块(其标识符为 fs)进行。此配置类字段值将自动传递给嵌套的 AbstractFileService 祖先。

所有可用的配置字段包括:

class FSConfig extends \samson\core\Config 
{
  /**@var string Set Amazon Web Services as web-application file service using its class name */
  public $fileServiceClassName = 'samsonphp\fs\AWSFileService';

  /** @var string $bucket Aws bucket name */
  public $bucket = '...';
 
  /** @var string $accessKey */
  public $accessKey = '...';
 
  /** @var string $secretKey */
  public $secretKey = '...';
 
  /** @var string $bucketURL Url of amazon bucket */
  public $bucketURL = '...';
  
  /** @var string $region Region of AWS S3 service */
  public $region = '...';
}