PHP code example of exs / feeds-chaturbate-bundle

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

    

exs / feeds-chaturbate-bundle example snippets



// app/AppKernel.php

class AppKernel extends Kernel
{
    // ...
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new EXS\FeedsChaturbateBundle\EXSFeedsChaturbateBundle(),
        );
    }
}

/**
 * Returns live performers information.
 */
$performers = $container
    ->get('exs_feeds_chaturbate.feeds_reader')
    ->getLivePerformers()
;

/**
 * Performers information  are like :
 *
 * $performers = [
 *     [
 *         'num_followers' => 999,
 *         'display_name' => "XXX",
 *         'tags' => [
 *             "XXX",
 *         ],
 *         'location' => "XXX",
 *         'username' => "XXX",
 *         'spoken_languages' => "XXX",
 *         'is_hd' => true,
 *         'seconds_online' => 999,
 *         'gender' => "X",
 *         'age' => 99,
 *         'num_users' => 999,
 *         'room_subject' => "XXX",
 *     ],
 *     ...
 * ];
 */