2017 © Pedro Peláez
 

library youtube-dl-php

PHP library to download video

image

noc-med/youtube-dl-php

PHP library to download video

  • Saturday, July 4, 2015
  • by semihs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 27 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

YouTube-dl-php

This library is a PHP implementation of Youtube-dl for downloading video from Youtube and other sites., (*1)

Installation

Youtube-dl has must be installed first., (*2)

Installation using Composer:, (*3)

{
    "require": {
        "noc-med/youtube-dl-php": "dev-master"
    }
}

Examples

Download

use Youtubedl\Youtubedl;

$youtubedl=new Youtubedl();
$youtubedl->getFilesystemOption()
          ->setOutput("\"/tmp/%(title)s.%(ext)s\"");
$youtubedl->download('BaW_jenozKc');

Multiple Download

use Youtubedl\Youtubedl;

$youtubedl=new Youtubedl();
$youtubedl->getFilesystemOption()
          ->setOutput("\"/tmp/%(title)s.%(ext)s\"");
$youtubedl->download(array('BaW_jenozKc','dOibtqWo6z4'));

Extractor List

use Youtubedl\Youtubedl;

$youtubedl=new Youtubedl();
$youtubedl->getOption()
          ->getExtractors();
var_dump($youtubedl->execute());

Extractor Descriptions

use Youtubedl\Youtubedl;

$youtubedl=new Youtubedl();
$youtubedl->getOption()
          ->getExtractorDescriptions();
var_dump($youtubedl->execute());

User Agent

use Youtubedl\Youtubedl;

$youtubedl=new Youtubedl();
$youtubedl->getOption()
          ->setUserAgent('Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14')   
          ->getUserAgent();
var_dump($youtubedl->execute());

The Versions

04/07 2015

dev-master

9999999-dev

PHP library to download video

  Sources   Download

The Requires

 

by Avatar Chellem

download youtube