Installation:
- Make sure you're in the root folder of the git repository of your Kohana installation
- Add this repository as a submodule in /modules/ko3-fusion:
git submodule add git@github.com:melvinmt/KO3-Fusion.git modules/ko3-fusion git submodule init git submodule update
- CD into /modules/ko3-fusion
- 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.07. 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
- 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(); $sdb->put_attributes();
OR chain the methods if you're really really lazy:
Amazon::SDB()->put_attributes();
Cloudfusion Documentation: http://getcloudfusion.com/docs/2.5/