The Viddler team is using CodeIgniter more and more for our internal PHP projects. Obviously we need to use CodeIgniter with the Viddler API quite a bit so we figured we’d share with you how easy it is to include PHPViddler, the open source PHP API wrapper class for the Viddler API, in your CodeIgniter application.
Here are the steps to follow:
- Download the latest copy of PHPViddler.
- Extract PHPViddler into system/libraries/phpviddler/ in your CodeIgniter installation.
- Load the PHPViddler library (as needed) like this:
// Load PHP Viddler and setup $this->load->library('phpviddler/php5viddler'); $viddler = $this->php5viddler; $viddler->apiKey = 'your_api_key_here';
- Use $viddler->function_name() after that.