Skip to content

Commit

Permalink
Upgrade dependencies, add a method to check if file exists, update re…
Browse files Browse the repository at this point in the history
…adme
  • Loading branch information
Tim Stallmann committed Apr 6, 2023
1 parent dc19511 commit 5cb80e8
Show file tree
Hide file tree
Showing 4 changed files with 441 additions and 96 deletions.
12 changes: 12 additions & 0 deletions OmekaAmazonS3StorageAdapterPlugin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

/**
* @copyright 2016 King's College London
* @license: https://joinup.ec.europa.eu/community/eupl/og_page/eupl
*/
require_once('vendor/autoload.php');
require_once('libraries/Omeka/Storage/Adapter/AmazonS3.php');

class OmekaAmazonS3StorageAdapterPlugin extends Omeka_Plugin_AbstractPlugin
{
}
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ The main differences are:

## Usage

1. Install the plugin by extracting it to the `plugins` directory in your Omeka instance and enabling
in admin/plugins
2. Add the following to your Omeka `application/configuration/config.ini` file:
1. Download repo as a zip file and extract it to a folder named `OmekaAmazonS3StorageAdapter` in the `plugins` directory in your Omeka instance.
2. Run `composer install` within the plugin's folder to install the Amazon S3 PHP SDK.
3. Enable the plugin in admin/plugins
4. Add the following to your Omeka `application/configuration/config.ini` file:

```
storage.adapter = Omeka_Storage_Adapter_AmazonS3
Expand Down
Loading

0 comments on commit 5cb80e8

Please sign in to comment.