Update: 0.1.3 now works with PHP4 as well!
Update: due to changes in the YouTube-forms, all versions of PHPTube prior 0.1.2 are rendered obsolete!
This class can be used to upload and download video files from YouTube.
It can login in YouTube on behalf of a given registered user and upload and download video files.
Downloading takes as parameters the identifier of the video to download and the name of the file to which the downloaded video will be stored.
Uploading takes as parameters the name of the video file to upload, the video title, description, tags, category, language, and whether the video should be made publicly accessible to all users, or only to family and friends of the uploader user.
Prize: One book of choice by O'Reilly
|YouTube is a very popular site. It lets users share their videos and lets other users embed shared videos in their sites.
Embedding YouTube videos is easy, even more with already existing PHP components that can generate the necessary HTML.
However, uploading and downloading video files from YouTube for other purposes, is a different challenge.
This class provides a solution to address that problem, making it easy to upload and download video files to Youtube from a PHP script.