Skip to content

OlegMarko/video-details

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube video details from video URL

Total Downloads Latest Stable Version License

Introduction

Get details by YouTube video from video URL.

Installation

To get started with YouTube video details, simply run:

composer require fixik/video-details

Next, register the Fixik\VideoDetails\VideoDetailsServiceProvider in your config/app.php file:

'providers' => [
    // Other service providers...

    Fixik\VideoDetails\VideoDetailsServiceProvider::class,
],

Basic Usage

    <?php
    
        require_once 'vendor/autoload.php';
        
        use Fixik\VideoDetails\VideoDetails;
        
        $url = 'https://www.youtube.com/watch?v=ol23jnhVAOY';
        $video_details = VideoDetails::getVideoDetailsByURL($url);
        
        echo '<pre>';
        print_r($video_details);
        echo '</pre>';

Enable extension=php_curl.dll in your php.ini

License

YouTube Video Details is open-sourced software licensed under the MIT license