How do I get a YouTube video thumbnail from the YouTube API?
$data = file_get_contents("https://www.googleapis.com/youtube/v3/videos?key=YOUR_API_KEY&part=snippet&id=T0Jqdjbed40");
$json = json_decode($data);
var_dump($json->items[0]->snippet->thumbnails);
Also in PHP:
- Your requirements could not be resolved to an installable set of packages. Problem 1 - phpunit/phpunit 9.5.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.
- PHP if exists string
- Artisan call Cache:clear
- creating thumbnail in codeigniter
- acf repeater example count
- check if string contains word php
- eloquent seeds down
- check string variable length php
- cacert.pem file_get_contents openssl
- 3 elements in do while loop php
- control string length php
- file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages 3
- extract($user_input); alternative php
- changing a part of a string into uppercase php
- change max_execution_time php
- Get last id in laravel
- check if string contains substring pho
- Decode from Base64 format php
- file in array
- can we seed test database in laravel with seeder?
- check if number is divisable by 3 php
- base64 to image
- eloquent remove updated_at
- disable cache laravel 8 development