PHP code example of chojnicki / video-platforms-parser

1. Go to this page and download the library: Download chojnicki/video-platforms-parser library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

chojnicki / video-platforms-parser example snippets




php artisan vendor:publish --provider="Chojnicki\VideoPlatformsParser\ServiceProvider"

$info = VideoPlatformsParser::get('https://www.youtube.com/watch?v=jofNR_WkoCE');



$parser = new Chojnicki\VideoPlatformsParser\VideoPlatformsParser(); // put array config inside

$info = $parser->get('https://www.youtube.com/watch?v=jofNR_WkoCE');





$parser = new Chojnicki\VideoPlatformsParser\VideoPlatformsParser(); // put array config inside

$info = $parser->get('https://www.youtube.com/watch?v=jofNR_WkoCE');

[
    'youtube_api_key' => '',
    'youtube_api_disabled' => false,
    'dailymotion_api_disabled' => false,
    'vimeo_api_disabled' => false,
    'streamable_api_disabled' => false,
    'twitter_api_bearer_token' => '',
    'twitter_api_disabled' => false
]