tmsw / kitvideo-bundle
Symfony TmswKitvideoBundle
Installs: 427
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 6
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- symfony/framework-bundle: >=2.1,<2.3-dev
- symfony/security-bundle: >=2.1,<2.3-dev
This package is not auto-updated.
Last update: 2018-04-29 09:30:55 UTC
README
The TmswKitvideoBundle adds support for Kit Video API in Symfony2.
Features include:
- Automatic retrieve ok AppToken and AuthToken
- Abstraction layer for all the API
Caution: This bundle is a work in progress
Installation
Follow these steps to install TmswKitvideoBundle
- Download TmswKitvideoBundle
- Configure the Autoloader
- Enable the Bundle
- Configure the TmswKitvideoBundle
Step 1: Download TmswKitvideoBundle
Ultimately, the TmswKitvideoBundle files should be downloaded to the
vendor/bundles/Tmsw/TmswKitvideoBundle
directory.
This can be done in several ways, depending on your preference. The first method is the standard Symfony2 method.
Using the vendors script
Add the following lines in your deps
file:
[TmswKitvideoBundle]
git=git://github.com/tmsw/TmswKitvideoBundle.git
target=bundles/Tmsw/KitvideoBundle
Now, run the vendors script to download the bundle:
$ php bin/vendors install
Using submodules
If you prefer instead to use git submodules, then run the following:
$ git submodule add git://github.com/tmsw/TmswKitvideoBundle.git vendor/bundles/Tmsw/TmswKitvideoBundle $ git submodule update --init
Step 2: Configure the Autoloader
Add the Tmsw
namespace to your autoloader:
<?php // app/autoload.php $loader->registerNamespaces(array( // ... 'Tmsw' => __DIR__.'/../vendor/bundles', ));
Step 3: Enable the bundle
Finally, enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Tmsw\KitvideoBundle\TmswKitvideoBundle(), ); }
Step 4 : Configure TmswKitVideoBundle
// app/config/config.yml
tmsw_kitvideo: app_key: %kitvideo_appkey% username: %kitvideo_username% password: %kitvideo_password%
// app/config/parameters.ini
kitvideo_appkey = appkey kitvideo_username = username@me.com kitvideo_password = password
Usage
This is an example retrieving a video list from a controller :
$apiReturn = $this->get('tmsw_kitvideo.api.channel')->getVideos('00d0cc7e5b3c'); foreach($kVideos->video as $kVideo){ $sigs = $kVideo->sig; }
License
This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE
Reporting an issue or a feature request
Issues and feature requests are tracked in the Github issue tracker.
When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.