2017 © Pedro Peláez
 

symfony-bundle feeds-chaturbate-bundle

This bundle reads Chaturbate's api to get live performers' information.

image

exs/feeds-chaturbate-bundle

This bundle reads Chaturbate's api to get live performers' information.

  • Monday, October 16, 2017
  • by rumpranger
  • Repository
  • 6 Watchers
  • 0 Stars
  • 256 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

EXS-FeedsChaturbateBundle

Build Status, (*1)

Installation

This bundle uses PHP's native Memcached objects., (*2)

Make sure the memcached module is enabled in your PHP's installation., (*3)

Require the bundle using composer, (*4)

$ composer require exs/feeds-chaturbate-bundle

Enable the bundle in AppKernel, (*5)

<?php
// app/AppKernel.php

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

Configuration

Some configuration is available to manage the cache., (*6)

# Default values
exs_feeds_chaturbate:
    cache_ttl: 300
    memcached_host: 'localhost'
    memcached_port: 11211

Usage

/**
 * 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",
 *     ],
 *     ...
 * ];
 */

A command is also available if you want to force refresh the memcached record., (*7)

$ app/console feeds:chaturbate:refresh-live-performers --env=prod --no-debug

// Can specify cache lifetime
$ app/console feeds:chaturbate:refresh-live-performers --ttl=3600 --env=prod --no-debug

The Versions

16/10 2017

dev-master

9999999-dev https://github.com/ExSituMarketing/EXS-FeedsChaturbateBundle

This bundle reads Chaturbate's api to get live performers' information.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ex-Situ Marketing

symfony2 bundle

16/10 2017

v0.0.4

0.0.4.0 https://github.com/ExSituMarketing/EXS-FeedsChaturbateBundle

This bundle reads Chaturbate's api to get live performers' information.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ex-Situ Marketing

symfony2 bundle

13/10 2017

v0.0.3

0.0.3.0 https://github.com/ExSituMarketing/EXS-FeedsChaturbateBundle

This bundle reads Chaturbate's api to get live performers' information.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ex-Situ Marketing

symfony2 bundle

11/10 2017

v0.0.2

0.0.2.0 https://github.com/ExSituMarketing/EXS-Feeds-Chaturbate

This bundle reads Chaturbate's api to get live performers' Ids.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ex-Situ Marketing

symfony2 bundle

02/10 2017

v0.0.1

0.0.1.0 https://github.com/ExSituMarketing/EXS-Feeds-Cambuilder

This bundle reads CamBuilder's api to get live performers' Ids.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ex-Situ Marketing

symfony2 bundle