tinypay / KO3-Fusion

Kohana 3 module for CloudFusion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 git@github.com:melvinmt/KO3-Fusion.git modules/ko3-fusion
	git submodule init
	git submodule update
  1. CD into /modules/ko3-fusion
  2. 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
  1. 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/

About

Kohana 3 module for CloudFusion


Languages

Language:PHP 100.0%