josip/vidinfo

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

Fetch Video Info From Realms

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/josip/vidinfo

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

This package is auto-updated.

Last update: 2025-10-05 06:04:40 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.