PHP Classes
elePHPant
Icontem

File: README.md

Recommend this page to a friend!
  Classes of adriano123456  >  YoutubeInfo  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: YoutubeInfo
Get information about a video in YouTube
Author: By
Last change:
Date: 1 year ago
Size: 1,070 bytes
 

 

Contents

Class file image Download

YoutubeInfo

Implementando

$obj = new YoutubeInfo("https://www.youtube.com/watch?v=VHxjyBtKxpM");

$obj->getThumb()

$obj->getThumb('small')

alt text alt text

print_r($obj->getInfo());
stdClass Object
(
    [author_name     ] => Peter Gundry | Composer
    [thumbnail_width ] => 480
    [width           ] => 480
    [type            ] => video
    [provider_url    ] => https://www.youtube.com/
    [height          ] => 270
    [author_url      ] => https://www.youtube.com/user/23Alchemist23
    [thumbnail_url   ] => https://i.ytimg.com/vi/VHxjyBtKxpM/hqdefault.jpg
    [provider_name   ] => YouTube
    [version         ] => 1.0
    [thumbnail_height] => 360
    [title           ] => Nordic/Viking Music - FoĢ?lkvangr
    [html            ] => <iframe width="480" height="270" src="https://www.youtube.com/embed/VHxjyBtKxpM?feature=oembed" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>
)