PHPackages                             wotek/video-bundle - 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. [Admin Panels](/categories/admin)
4. /
5. wotek/video-bundle

ActiveSymfony-bundle[Admin Panels](/categories/admin)

wotek/video-bundle
==================

Video bundle for Symfony 2

012PHP

Since Aug 27Pushed 12y agoCompare

[ Source](https://github.com/wotek/VideoBundle)[ Packagist](https://packagist.org/packages/wotek/video-bundle)[ RSS](/packages/wotek-video-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

VideoBundle
-----------

[](#videobundle)

[![Build Status](https://camo.githubusercontent.com/d5e6b41a6ebe1da4b0a369333af078d99a66d28624449841ff65ee45450714fd/68747470733a2f2f7472617669732d63692e6f72672f776f74656b2f566964656f42756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/wotek/VideoBundle)

VideoBundle is a result of me learning Symfony2 Framework. I do hope you find it useful.

**Features:**

- Uploads video through provider API
- Keeps track of uploaded files

**Supported API's:**

- Vimeo

1. Requirements

---

Bundle **heavily** depends on great REST client library Guzzle.

- Guzzle (@see )

### Use Composer (*recommended*)

[](#use-composer-recommended)

If you don't have Composer yet, download it following the instructions on  or just run the following command:

```
curl -s http://getcomposer.org/installer | php

```

### Install VideoBundle

[](#install-videobundle)

```
# Composer will automaticaly download & install & modify your composer.json
composer require wotek/video-bundle:dev-master

```

2. Configuration

---

### Register bundle

[](#register-bundle)

```
# source: app/AppKernel.php
$bundles = array(
  // ...
  new Wtk\VideoBundle\WtkVideoBundle(),
  // ...
);

```

### Update database schema

[](#update-database-schema)

Movies bundle uses one table `movies` where movie metadata is held.

Create database if not already have it?

```
app/console doctrine:database:create

```

Create database tables:

```
app/console doctrine:schema:create

```

... or migrate database:

```
app/console doctrine:schema:update

```

### Providers

[](#providers)

For now bundle consumes only Vimeo API. You need to configure access to API in `app/config/config.yml` configuration file.

Example:

```
wtk_video:
  providers:
      vimeo:
          consumer_secret:    API Consumer
          consumer_key:       API Consumer Key
          token:              Token
          token_secret:       Token secret

```

3. Usage

---

Bundle provides (only) command line interface to manage video uploads.

#### Available commands:

[](#available-commands)

##### Movie upload

[](#movie-upload)

Uploads given file using configured providers.

```
movies:upload [--provider="..."] [--path="..."] [--title[="..."]] [--description[="..."]]

Options:
 --provider            Provider name
 --path                Path to file
 --title               Uploaded video title (optional)
 --description         Video description (optional)

```

Currently there is not verbose information when file is being uploaded.

Example usage:

```
$ app/console movies:upload --path=tofik.mov \
--title="Tofik" \
--description="Tofik is just jumping around" \
--provider=vimeo

Uploading tofik.mov this might take a while. Hold on. Go get a coffee
File id: 73208538 uploaded.

```

##### List uploaded movies

[](#list-uploaded-movies)

Lists all uploaded movies.

```
movies:list

Options:
 None

Outputs:

+----+----------+----------------------------------+----------+-----------+
| ID | RemoteID | Checksum                         | Provider | Completed |
+----+----------+----------------------------------+----------+-----------+
| 1  | 73206060 | 92513815a44ea80099f46bf8a871cd62 | vimeo    | 1         |
| 2  | 73208538 | 445df168c31e07ef806c788f8420e1fa | vimeo    | 1         |
+----+----------+----------------------------------+----------+-----------+

```

##### Get movie details

[](#get-movie-details)

Retrieves movie details from API.

```
Usage:
 movies:details [--provider="..."] [--id="..."]

Options:
 --provider            Provider name
 --id                  Movie id

Outputs:

+--------------------+-----------+
| Property           | Value     |
+--------------------+-----------+
| generated_in       | 0.0165    |
+--------------------+-----------+
| [ ... ]            | [ ... ]   |
+--------------------+-----------+

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/18704ffaf2853b238693ebe63a518eeb1aa62bc897f745bb31767c7fe1978132?d=identicon)[wotek](/maintainers/wotek)

### Embed Badge

![Health badge](/badges/wotek-video-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/wotek-video-bundle/health.svg)](https://phpackages.com/packages/wotek-video-bundle)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
