2017 © Pedro Peláez
 

library php-roku

PHP Library for communication with Roku External Control Protocol

image

svilborg/php-roku

PHP Library for communication with Roku External Control Protocol

  • Monday, August 4, 2014
  • by svilborg
  • Repository
  • 1 Watchers
  • 9 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Roku PHP Library

Build Status Latest Stable Version Latest Unstable Version, (*1)

PHP Library for communication with Roku External Control Protocol, (*2)

Installation

Installing via Composer

Install composer in a common location or in your project:, (*3)

curl -s http://getcomposer.org/installer | php

Create the composer.json file as follows:, (*4)

{ 
    "require": {
        "svilborg/php-roku": "dev-master"
    }
}

Run the composer installer:, (*5)

php composer.phar install

Requirements

  • PHP Version >=5.3.2.
  • PHP Httpful Library

Usage

Execute commands :, (*6)


$roku = new \Roku\Roku("192.168.72.10", 8060, 0.2); $roku->up(); $roku->select(); $roku->literals("test@gmail.com"); $roku->down(); $roku->down(); $roku->select();

List the applicatioin installed on the device :, (*7)



$roku = new \Roku\Roku("192.168.72.10", 8060, 0.2); $applications = $roku->apps(); foreach ($applications as $application) { echo $application->getId(); echo $application->getVersion(); echo $application->getName(); echo "\n"; }

Get device information :, (*8)



$roku = new \Roku\Roku("192.168.72.10", 8060, 0.2); $device = $roku->device(); echo $device->getSerialNumber(); echo $device->getModelName(); echo $device->getModelDescription(); // etc..

Usage Commandline

For the list of commands execute :, (*9)


$ vendor/bin/roku --help

It displays :, (*10)


PHP Roku Console Usage: roku [OPTION] .. -h <host> Host -p <port> Port -d <delay> Delay between each command -i Interactive mode (Listens for keyboard keystrokes) -c <commands> Command mode (Specify commands to be executed, Example -c "up down test@gmail.com down select home") -t Test Mode (Does not send commands.Just simulates them.) --help Shows this help

Example usage of command and interactive modes :, (*11)


$ vendor/bin/roku -h 192.168.72.10 -p 8060 -d 1 -c "up test@gmailc.om down down select home" $ vendor/bin/roku -h 192.168.72.10 -d 1 -i

Running the tests

First, install PHPUnit with composer.phar install --dev, then run ./vendor/bin/phpunit., (*12)

The Versions

04/08 2014

dev-master

9999999-dev

PHP Library for communication with Roku External Control Protocol

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Avatar svilborg

http roku

04/08 2014

v0.3.0

0.3.0.0

PHP Library for communication with Roku External Control Protocol

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Avatar svilborg

http roku

03/08 2014

v0.2.0

0.2.0.0

PHP Library for communication with Roku External Control Protocol

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Avatar svilborg

http roku

02/08 2014

v0.1.0

0.1.0.0

PHP Library for communication with Roku External Control Protocol

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Avatar svilborg

http roku