Skip to content
melvinmt edited this page Sep 14, 2010 · 3 revisions

Installation:

1. Make sure you’re in the root folder of the git repository of your Kohana installation
2. Add this repository as a submodule in /modules/ko3-fusion:

git submodule add [email protected]:melvinmt/KO3-Fusion.git modules/ko3-fusion
git submodule init
git submodule update

3. CD into /modules/ko3-fusion
4. Run git commands to fetch the cloudfusion repository:
git submodule init
git submodule update

5. CD into /modules/ko3-fusion/vendor/cloudfusion
6. Run git command to checkout to the 2.5.0 release:
git checkout 2.5.0

7. Go back to /modules/ko3-fusion
8. Rename /config/cloudfusion-sample.php to /config/cloudfusion.php
9. Fill in your Amazon credentials in /config/cloudfusion.php
10. Add this line to the modules section in bootstrap.php:
‘ko3-fusion’ => MODPATH.‘ko3-fusion’, // KO3Fusion, a Cloudfusion integration

11. Phew, you made it!

Usage:

You can include the Cloudfusion library from anywhere in your Kohana with this simple line:

KO3Fusion::init()

You’re able to use the normal Cloudfusion classes and methods after initialization:
KO3Fusion::init();
$sdb = new AmazonSDB();

OR don’t initialize and use the Amazon static methods if you’re lazy:

$sdb = Amazon::SDB;

OR chain the methods if you’re really really lazy:
Amazon::SDB;

Cloudfusion Documentation:
http://getcloudfusion.com/docs/2.5/

Clone this wiki locally