PHP code example of aciliainternet / video-provider-bundle

1. Go to this page and download the library: Download aciliainternet/video-provider-bundle 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/ */

    

aciliainternet / video-provider-bundle example snippets


// app/AppKernel.php

public function registerBundles()
{
    return array(
        new Acilia\Bundle\VideoProviderBundle\AciliaVideoProviderBundle(),
        // ...
    );
}

// Get the service
$videoProvider = $this->get('acilia.video_provider');

// Call methods not covered by the interface
$videoProvider->call('setAccount', ['FIC Fox Play PT LF']);

// Get a video by ID
$video = $videoProvider->getVideoInfo('22070341236');

// Get videos from feed
$videos = $videoProvider->getVideosFromFeed('40xNZWrzTq0v');