PHPackages                             boboldehampsink/youtube - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. boboldehampsink/youtube

AbandonedArchivedCraft-plugin[Utility &amp; Helpers](/categories/utility)

boboldehampsink/youtube
=======================

YouTube Upload Plugin for Craft CMS

0.7.2(8y ago)112.0k4[1 issues](https://github.com/boboldehampsink/youtube/issues)MITPHPPHP &gt;=5.4

Since Jun 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/boboldehampsink/youtube)[ Packagist](https://packagist.org/packages/boboldehampsink/youtube)[ RSS](/packages/boboldehampsink-youtube/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (26)Used By (0)

DEPRECATED - YouTube Upload plugin for Craft CMS [![Build Status](https://camo.githubusercontent.com/1197fc092819265fed07b814811d6fd059199d4510c00ee21712e0a31491b18a/68747470733a2f2f7472617669732d63692e6f72672f626f626f6c646568616d7073696e6b2f796f75747562652e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/boboldehampsink/youtube) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/193911b3c3c2c7435d4feec3ebd2aaafb1e1672406614a9ee3d8b943d32d933f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f626f6c646568616d7073696e6b2f796f75747562652f6261646765732f7175616c6974792d73636f72652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/boboldehampsink/youtube/?branch=develop) [![Code Coverage](https://camo.githubusercontent.com/1979b1f21be58ae2dd7d237409849a6ad9343032937d946c3f3fbfc67a574c75/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f626f6c646568616d7073696e6b2f796f75747562652f6261646765732f636f7665726167652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/boboldehampsink/youtube/?branch=develop) [![Latest Stable Version](https://camo.githubusercontent.com/0955c02f6215634d3bea8de0ea09b0b9c38200ab0c3515851601880ece29f007/68747470733a2f2f706f7365722e707567782e6f72672f626f626f6c646568616d7073696e6b2f796f75747562652f762f737461626c65)](https://packagist.org/packages/boboldehampsink/youtube) [![Total Downloads](https://camo.githubusercontent.com/858b3f4e2abb8c037dac23db02a2bee8da431cc2eddd95685064e875a071cc8a/68747470733a2f2f706f7365722e707567782e6f72672f626f626f6c646568616d7073696e6b2f796f75747562652f646f776e6c6f616473)](https://packagist.org/packages/boboldehampsink/youtube) [![Latest Unstable Version](https://camo.githubusercontent.com/b90cb0b2440e5851968e8aa5d3acfd099f5b9571d63c9bad0470ab1e245309f4/68747470733a2f2f706f7365722e707567782e6f72672f626f626f6c646568616d7073696e6b2f796f75747562652f762f756e737461626c65)](https://packagist.org/packages/boboldehampsink/youtube) [![License](https://camo.githubusercontent.com/93d42bd016a7ffe435962dca405d337e6c1af99db7d84e89333c412aceb89f3c/68747470733a2f2f706f7365722e707567782e6f72672f626f626f6c646568616d7073696e6b2f796f75747562652f6c6963656e7365)](https://packagist.org/packages/boboldehampsink/youtube)
================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#deprecated---youtube-upload-plugin-for-craft-cms-------)

Plugin/FieldType that uploads video assets to YouTube and is able to output their YouTube URL's in the front-end.

**Important**

- The plugin's folder should be named "youtube"
- This plugin requires [Dukt's OAuth](https://dukt.net/craft/oauth) plugin to be installed

Deprecated
==========

[](#deprecated)

With the release of Craft 3 on 4-4-2018, this tool has been deprecated. You can still use this with Craft 2 but you are encouraged to use (and develop) a Craft 3 version. At this moment, I have no plans to do so.

Usage
=====

[](#usage)

This plugin provides an YouTube Upload FieldType that works like the Asset FieldType.
You can upload a video, and the plugin starts a background task to upload this video to YouTube.
Once it is done it saves the YouTube video URL to the database.
It is then able to return a model that contains the YouTube ID and URL's for watching and embedding.

Known issues
============

[](#known-issues)

There appears to be a problem when uploading the same video more than once in a session. It looks like it might be a YouTube bug, and I've reported it here: [https://code.google.com/p/gdata-issues/issues/detail?id=7326&amp;thanks=7326&amp;ts=1434712883](https://code.google.com/p/gdata-issues/issues/detail?id=7326&thanks=7326&ts=1434712883)

Roadmap
=======

[](#roadmap)

- Better OAuth plugin integration and dependency management
- Better YouTube upload progress indication

Development
===========

[](#development)

Run this from your Craft installation to test your changes to this plugin before submitting a Pull Request

```
phpunit --bootstrap craft/app/tests/bootstrap.php --configuration craft/plugins/youtube/phpunit.xml.dist --coverage-text craft/plugins/youtube/tests
```

Changelog
=========

[](#changelog)

### 0.7.2

[](#072)

- Added missing dutch translation
- Updated dependencies

### 0.7.1

[](#071)

- Fixed rare cases of validation issues
- Updated dependencies

### 0.7.0

[](#070)

- Added interface for deleting hashes, so you can re-upload video's that you deleted from YouTube.
- Updated dependencies

### 0.6.5

[](#065)

- Updated dependencies and fixed unit tests

### 0.6.4

[](#064)

- Updated Google API client to 2.0.0

### 0.6.3

[](#063)

- Updated plugin to work with OAuth Plugin 1.0+
- Fix search keywords criteria

### 0.6.2

[](#062)

- Removed the ability to manually set a timeout per step via the config
- Added user who created the task to the Task Manager plugin table, if installed
- Updated YouTube API

### 0.6.1

[](#061)

- Finish task when element doesn't exist anymore
- Only save element id values

### 0.6.0

[](#060)

- Verify if element still exists before starting a task
- Updated YouTube API and implementation
- Updated OAuth plugin dependency

### 0.5.0

[](#050)

- Added the ability to manually set a timeout per step via the config
- Clean up the temporary video file after conversion
- Improved unit tests for development

### 0.4.0

[](#040)

- Now handles duplicate video's

### 0.3.1

[](#031)

- Fixed a bug where the existing content could incorrectly be null
- Catch unknown exceptions
- Added unit tests

### 0.3.0

[](#030)

- Fixed a bug where saving the element without changing the YouTube field would override the YouTube ID's with Asset ID's

### 0.2.0

[](#020)

- Fixed a bug that could lead to asset id's returning instead of YouTube video id's

### 0.1.9

[](#019)

- Fixed a bug where tasks would hang

### 0.1.8

[](#018)

- Fixed a bug where multiple video's on a field couldn't be saved
- Fixed a bug where getting the right assets could go wrong

### 0.1.7

[](#017)

- Always handle asset processing before starting the youtube upload task

### 0.1.6

[](#016)

- Fixed a bug that occured when the youtube field was empty

### 0.1.5

[](#015)

- Fixed bug when post data is missing

### 0.1.4

[](#014)

- Fixed field not showing multiple values
- Try to only process new video's

### 0.1.3

[](#013)

- Remove the temporary video asset to save space
- Always produce an array for the front-end

### 0.1.2

[](#012)

- Don't run uploads task when there's no assets on the field

### 0.1.1

[](#011)

- Fixed plugin's output not being valid when there was no file connected

### 0.1.0

[](#010)

- Initial release

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Every ~33 days

Recently: every ~135 days

Total

24

Last Release

3227d ago

PHP version history (3 changes)0.6.0PHP ^5.3

0.6.4PHP ^5.4|^7.0

0.7.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/3dd0df0464b4919048281ee42a9210f4323e8f3a78d046067e550992e4a5fb7e?d=identicon)[boboldehampsink](/maintainers/boboldehampsink)

### Embed Badge

![Health badge](/badges/boboldehampsink-youtube/health.svg)

```
[![Health](https://phpackages.com/badges/boboldehampsink-youtube/health.svg)](https://phpackages.com/packages/boboldehampsink-youtube)
```

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[mediawiki/semantic-cite

A Semantic MediaWiki extension to manage citation resources.

2310.2k1](/packages/mediawiki-semantic-cite)[humanmade/popup

An exit intent popup block that shows when someone may be about to leave the site

144.8k](/packages/humanmade-popup)[winter/wn-seo-plugin

Winter CMS plugin for managing SEO tags

106.3k](/packages/winter-wn-seo-plugin)

PHPackages © 2026

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