idno/amazon-s3

Adds S3 support to Known

Installs: 81

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 7

Forks: 5

Open Issues: 1

Type:known-plugin

1.0.0 2020-02-18 15:22 UTC

This package is auto-updated.

Last update: 2024-05-08 01:18:05 UTC


README

Uses the Amazon Simple Storage Service (S3) to allow S3 file storage for the local back-end for Known.

Installation

  1. Modify your known composer.json to include the below; then update your lockfile
  • "idno/amazon-s3": "^1.0.0"
  1. composer update --lock
  • Enable the plugin
  • Set the following values in your site config.ini:
  • aws_key: Your AWS access key
  • aws_secret: Your AWS access secret
  • aws_bucket: The S3 bucket you want to store data inside
  • aws_region: The region you wish to connect to if not 'us-east-1'
  1. modify your config.ini so that s3://your-bucket/Uploads is the uploadpath
  2. Enjoy!

Once these are set, S3 will be set as the back-end for all files. It is worthwhile using s3 sync to retrieve existing files and upload. This has only been manually tested on greenfield deploys.

License & libraries

Released under an Apache license.

Contains the AWS PHP SDK and associated dependencies.