An open API service indexing awesome lists of open source software.

https://github.com/fernandovaller/thumbnail

Get the thumbnail of youtube and vimeo videos from the url. The returned information is ID and URL of the thumbnail
https://github.com/fernandovaller/thumbnail

thumbnail video vimeo youtube

Last synced: 6 months ago
JSON representation

Get the thumbnail of youtube and vimeo videos from the url. The returned information is ID and URL of the thumbnail

Awesome Lists containing this project

README

          

# Video Thumbnail URL

Get the thumbnail of youtube and vimeo videos from the url. The returned information is ID and URL of the thumbnail

## Installation

Install the latest version with

```bash
$ composer require fernandovaller/thumbnail
```

## Basic Usage

```php
get($url);
```

## Config

Vimeo videos can have origin restriction, in which case add the setting to simulate the origin in the request.

```php
'https://www.google.com'
];

$th = new Thumbnail($config);

$url = 'youtube|vimeo URL video';

// The returned information is ID and URL of the thumbnail
$data = $th->get($url);
```

## Noembed

```php
getNoembed($url);
```