To get a thumbnail image for a YouTube video in PHP, you can use the file_get_contentsfunction to make a GET request to the videos.list method of the YouTube Data API.
After April 20, 2015, YouTube discontinued support for the RSS feed feature in the version 2 of their API.