PHP script to get latest Video from YouTube Channel


Many times we have to show the latest video from YouTube list or from the channel on the website. I was developing a WordPress site and I required php script to get latest YouTube list’s single video and have to show it using the shortcode in any pages or on widgets.

So, I collected all the php code to get the latest YoTube video and merge it. Below is PHP script to get the Youtube latest video from the channel. For the php script, you need following things to get complete successful output.

  • YouTube Channel Name
  • Google YouTube API key

Please get all the details and update them in the above code. I used few bootstrap classes for the good layout but you can change all the classes and design .

So, I hope this is very helpful to you to get the latest video from YouTube channel.