fixik/video-details

Get YouTube video details by video URL

2.0.2 2018-01-06 00:15 UTC

This package is auto-updated.

Last update: 2024-05-06 09:08:24 UTC


README

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