library zencoder
Load Zencoder Service via Zend Framework (ZF2) Service Locator
thesisplanet/zencoder
Load Zencoder Service via Zend Framework (ZF2) Service Locator
- Tuesday, February 4, 2014
- by jackdpeterson
- Repository
- 1 Watchers
- 0 Stars
- 27 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
ZF2 Zencoder Service Module
Introduction
Load up Zencoder (Service_Zencoder) through the ZF2 Service Locator., (*1)
Installation
- require in composer.json "thesisplanet/zencoder": "dev-master"
- add 'Zencoder' to your list of required modules in application.config.php
- Copy over vendor/thesisplanet/zencoder/config/zencoder.local.dist.php to config/autoload/zencoder.local.php
Configuration
- Set correct api key in config/autoload/zencoder.local.php
Usage
To access Zencoder from a class which implements the ServiceLocatorAwareInterface
:, (*2)
$zencoder = $this->getServiceLocator()->get('ThesisPlanet\ZencoderService');
This will return an instance of Services_Zencoder.
From there, you can interact with all of the Zencoder goodness as briefly documented at
https://github.com/zencoder/zencoder-php