samsonos/php_fs_aws

SamsonPHP aws file system service

1.0.3 2014-12-15 12:48 UTC

This package is not auto-updated.

Last update: 2024-12-17 03:56:22 UTC


README

#SamsonPHP AWS File service module

This is File service implementation for Amazon AWS S3 buckets in SamsonPHP. This is abstraction layer over standard PHP file functions.

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

##Configuration

This is done using SamsonPHP module/service configuration

In all nested php_fs_* modules which must be build on top of php_fs module all configuration are done to main php_fs module(It's identifier is fs). This configuration class field values will be automatically passed to nested AbstractFileService ancestor.

All available configuration fields are:

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 = '...';
}