VidInfo - Oembed Video Info
, (*1)
Vidinfo package takes $url
parameter and returns video info via oembed urls from the following service providers:, (*2)
Install via Composer
$ composer require josip/vidinfo
Usage
Use it in static fashion:, (*3)
\Josip\Vidinfo\Vidinfo::getVideoInfo($url)
in order to return array or JSON string, add in the optional second argument:, (*4)
\Josip\Vidinfo\Vidinfo::getVideoInfo($url, $returnType)
The $returnType
var can be: object
, array
, json
. Falls back to array
., (*5)
License
Free as in free beer., (*6)