josip/vidinfo

There is no license information available for the latest version (dev-master) of this package.

Fetch Video Info From Realms

dev-master 2018-01-30 09:31 UTC

This package is auto-updated.

Last update: 2024-11-05 03:52:29 UTC


README

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.