PHPackages                             abushamleh/yii2-sprout-video - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. abushamleh/yii2-sprout-video

ActiveYii2-extension

abushamleh/yii2-sprout-video
============================

Yii2 client for SproutVideo (http://sproutvideo.com)

224PHP

Since Sep 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Abdelhadi92/yii2-sproutVideo)[ Packagist](https://packagist.org/packages/abushamleh/yii2-sprout-video)[ RSS](/packages/abushamleh-yii2-sprout-video/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-sproutVideo
================

[](#yii2-sproutvideo)

Yii2 client for SproutVideo ()

Installation
------------

[](#installation)

1. Run the [Composer](http://getcomposer.org/download/) command to install the latest version:

    ```
    composer require abushamleh/yii2-sprout-video "dev-master"
    ```
2. Add the component to `config/main.php`

    ```
    'components' => [
        // ...
        'sproutVideo' => [
            'class'   => 'abushamleh\sproutVideo\Client',
            'api_key' => 'your api key',
        ],
        // ...
    ],
    ```

Videos
======

[](#videos)

The following methods are available: `list_videos`, `get_video`, `create_video`, `update_video`, `replace_video`, `delete_video`.

list\_videos
------------

[](#list_videos)

By default the videos listing is paginated with 25 videos per page and sorted by upload date in ascending order. You can pass two parameters to control the paging: page and per\_page. You can also pass in the id of a tag to just return the videos tagged with that tag.

```
