PHP code example of cast / youtube

1. Go to this page and download the library: Download cast/youtube 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/ */

    

cast / youtube example snippets

 bash
CAST_YOUTUBE_GOOGLE_OAUTH_CLIENT_ID=<>
CAST_YOUTUBE_GOOGLE_OAUTH_CLIENT_SECRET=<>
CAST_YOUTUBE_GOOGLE_OAUTH_REDIRECT_URI=http://localhost/callback.php
CAST_YOUTUBE_CREDENTIALS_FILE_PATH=/storage/credentials.json