thesisplanet / zencoder
Load Zencoder Service via Zend Framework (ZF2) Service Locator
dev-master
2014-02-04 17:16 UTC
Requires
- zencoder/zencoder-php: >=2.1.1
- zendframework/zendframework: >2.2.0
This package is not auto-updated.
Last update: 2025-03-01 17:54:03 UTC
README
Introduction
Load up Zencoder (Service_Zencoder) through the ZF2 Service Locator.
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
:
$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