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
- Host: GitHub
- URL: https://github.com/fernandovaller/thumbnail
- Owner: fernandovaller
- Created: 2021-12-23T22:33:33.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-28T14:11:34.000Z (about 4 years ago)
- Last Synced: 2025-05-24T23:50:54.855Z (8 months ago)
- Topics: thumbnail, video, vimeo, youtube
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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);
```