jopacicdev / vidinfo

Fetch video info via oembed urls for YT/Vimeo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VidInfo - Oembed Video Info

Build Status

Vidinfo package takes $url parameter and returns video info via oembed urls from the following service providers:

  • YouTube
  • Vimeo

Install via Composer

$ composer require josip/vidinfo

Usage

Use it in static fashion:

\Josip\Vidinfo\Vidinfo::getVideoInfo($url)

in order to return array or JSON string, add in the optional second argument:

\Josip\Vidinfo\Vidinfo::getVideoInfo($url, $returnType)

The $returnType var can be: object, array, json. Falls back to array.

License

Free as in free beer.

About

Fetch video info via oembed urls for YT/Vimeo


Languages

Language:PHP 100.0%