PHPackages                             svilborg/php-roku - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. svilborg/php-roku

ActiveLibrary[HTTP &amp; Networking](/categories/http)

svilborg/php-roku
=================

PHP Library for communication with Roku External Control Protocol

v1.0.0(7y ago)15283Apache-2.0PHPPHP &gt;=7.0.0

Since Aug 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/svilborg/php-roku)[ Packagist](https://packagist.org/packages/svilborg/php-roku)[ RSS](/packages/svilborg-php-roku/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Roku PHP Library
================

[](#roku-php-library)

[![Build Status](https://camo.githubusercontent.com/43d91d664b70e012e5ac98c6391fe0baf72482e14d2ba2b03d10f7d6228c1a14/68747470733a2f2f6170692e7472617669732d63692e6f72672f7376696c626f72672f7068702d726f6b752e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/svilborg/php-roku)[![Latest Stable Version](https://camo.githubusercontent.com/56bef199ee0ebd7d64995370d86c0173e7a3f6a60e6f2a5a279606a452b35b02/68747470733a2f2f706f7365722e707567782e6f72672f7376696c626f72672f7068702d726f6b752f762f737461626c652e706e67)](https://packagist.org/packages/svilborg/php-roku)[![Latest Unstable Version](https://camo.githubusercontent.com/c29a067a88d1c773b740e95f016bd3d23acce2a42b08e79fb81a002442dc7be0/68747470733a2f2f706f7365722e707567782e6f72672f7376696c626f72672f7068702d726f6b752f762f756e737461626c652e706e67)](https://packagist.org/packages/svilborg/php-roku)

PHP Library for communication with Roku External Control Protocol

Installation
============

[](#installation)

Installing via Composer
-----------------------

[](#installing-via-composer)

Install composer in a common location or in your project:

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

Create the composer.json file as follows:

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

Run the composer installer:

```
php composer.phar install
```

Requirements
============

[](#requirements)

- PHP Version &gt;=5.3.2.
- PHP Httpful Library

Usage
=====

[](#usage)

Execute commands :

```
$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 :

```
$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 :

```
$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
=================

[](#usage-commandline)

For the list of commands execute :

```
$ vendor/bin/roku --help
```

It displays :

```
PHP Roku Console

Usage: roku [OPTION] ..

-h        Host
-p        Port
-d       Delay between each command
-i              Interactive mode (Listens for keyboard keystrokes)
-c    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 :

```
$ 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
=================

[](#running-the-tests)

First, install PHPUnit with `composer.phar install --dev`, then run `./vendor/bin/phpunit`.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~539 days

Total

4

Last Release

2690d ago

Major Versions

v0.3.0 → v1.0.02019-01-05

PHP version history (2 changes)v0.1.0PHP &gt;=5.3.2

v1.0.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db646b4e4a625b138b9b1cb5d5aad0f16c3fe35bbcacadd5fe788782f99df71?d=identicon)[svilborg](/maintainers/svilborg)

---

Top Contributors

[![svilborg](https://avatars.githubusercontent.com/u/2757518?v=4)](https://github.com/svilborg "svilborg (42 commits)")

---

Tags

composerphpphp-libraryphp-rokurokuroku-deviceroku-tvhttpRoku

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/svilborg-php-roku/health.svg)

```
[![Health](https://phpackages.com/badges/svilborg-php-roku/health.svg)](https://phpackages.com/packages/svilborg-php-roku)
```

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.2k](/packages/guzzlehttp-psr7)[psr/http-message

Common interface for HTTP messages

7.1k1.0B5.5k](/packages/psr-http-message)[psr/http-factory

PSR-17: Common interfaces for PSR-7 HTTP message factories

1.9k692.9M1.9k](/packages/psr-http-factory)[psr/http-client

Common interface for HTTP clients

1.7k680.7M2.1k](/packages/psr-http-client)[symfony/http-client

Provides powerful methods to fetch HTTP resources synchronously or asynchronously

2.0k314.0M3.4k](/packages/symfony-http-client)[psr/link

Common interfaces for HTTP links

2.5k144.1M68](/packages/psr-link)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
