Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 723 Bytes

File metadata and controls

39 lines (22 loc) · 723 Bytes

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.