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
Requires
- php: >=7.1
- aws/aws-sdk-php: ^3.133
- composer/installers: ~1.0
- monolog/monolog: ~1.7
Requires (Dev)
- mapkyca/known-dev-scripts: ^1.0
- mapkyca/known-language-tools: ^1.0
- mapkyca/known-phpcs: ^1.0
README
Uses the Amazon Simple Storage Service (S3) to allow S3 file storage for the local back-end for Known.
Installation
- Modify your known
composer.json
to include the below; then update your lockfile
"idno/amazon-s3": "^1.0.0"
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'
- modify your config.ini so that
s3://your-bucket/Uploads
is theuploadpath
- 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.