AWS plugin for KISSCMS
Simple CRUD methods to AWS for KISSCMS, (*1)
Dependencies
Install
Add the plugin in your plugins folder manually or as a submodule, for example:, (*2)
git submodule install git://github.com/kisscms/aws.git ./app/plugins/aws/
In your env.json you'll need to add where your root SDK folder. The SDK path will be used to include the AWS PHP SDK, which should live in this path:, (*3)
SDK. "aws/[VERSION]/aws.phar"
Usage
Create models using the SimpleDB trait, (*4)
class MyModel extends Model {
use SimpleDB;
}
Then use like any other KISSCMS module:, (*5)
$data = new MyModel();
$data->set(...);
$data->create();
or, (*6)
$data = new MyModel( id );
$data->set(...);
$data->update();
Methods
Currently supporting the basic CRUD methods: create, read, update, delete, (*7)
Options
These are the options added in the site's configuration, (*8)
Simple DB
-
simpleDB_host: The host of the SimpleDB table(s) (default: sdb.us-west-1.amazonaws.com)
-
simpleDB_timestamps: If enabled inserts
created & updated flags for every item (default: true)
-
simpleDB_soft_delete: A boolean that if selected hides the items instead of deleting (default: false)
S3
-
s3_region: The region of the S3 bucket(s) (default: s3-us-west-1.amazonaws.com)
Credits
Created by Makis Tracend ( @tracend ), (*9)
Distributed through Makesites.org, (*10)
Released under the MIT license, (*11)