samsonos/php_fs_aws

SamsonPHP aws 文件系统服务

1.0.3 2014-12-15 12:48 UTC

This package is not auto-updated.

Last update: 2024-09-24 02:54:27 UTC


README

#SamsonPHP AWS 文件服务模块

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

Latest Stable Version Build Status Code Climate Code Coverage Scrutinizer Code Quality Total Downloads

##配置

这是通过 SamsonPHP 模块/服务配置 完成的

在所有必须基于 php_fs 模块构建的嵌套 php_fs_* 模块中,所有配置都做到主 php_fs 模块上(其标识符为 fs)。此配置类字段值将自动传递给嵌套的 AbstractFileService 祖先。

所有可用的配置字段有

class FileServiceConfig extends \samson\core\Config 
{
  /**@var string Configured module/service identifier */
  public $__id = 'fs';
  
  /**@var string Set Amazon Web Services as web-application file service using its class name */
  public $fileServiceClassName = 'samson\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 = '...';
}