PHPackages                             mario-deluna/phptv - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mario-deluna/phptv

ActiveApplication[Utility &amp; Helpers](/categories/utility)

mario-deluna/phptv
==================

PHP Remote control for Sony Android TVs.

v1.0.1(8y ago)37233[1 issues](https://github.com/mario-deluna/PHPTv/issues)MITPHPPHP &gt;=7.0

Since Aug 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mario-deluna/PHPTv)[ Packagist](https://packagist.org/packages/mario-deluna/phptv)[ RSS](/packages/mario-deluna-phptv/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (2)Used By (0)

[ ![](https://user-images.githubusercontent.com/956212/28140686-a732b15c-6759-11e7-81ed-5a7968ff1e14.png)](https://github.com/mario-deluna/phptv/)

PHPTv
=====

[](#phptv)

A Command-Line Remote control for Sony Bravia Android TV written in PHP.

It was one of those evenings where I could not find the fu\*\*\*\*g remote for my TV. So instead of doing the work I'm supposed to do. I decided to procrastinate by writing this little program that allows you to control your Sony Android TV over the command line.

![license](https://camo.githubusercontent.com/21fd89fadab8728bf4d11ab652358e1cbd66ab4c91adb81cc8450201dc6d2783/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6172696f2d64656c756e612f70687074762e737667)![GitHub release](https://camo.githubusercontent.com/c678b14f8b6e874907090a74865d7f8f1423b34698e7b56bd46ad42c7080cb8e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6d6172696f2d64656c756e612f70687074762e737667)

❓❓❓
---

[](#)

[![ezgif-2-b5b7210025](https://user-images.githubusercontent.com/956212/28995030-035ace24-79de-11e7-91bb-44e5a77cc8c1.gif)](https://user-images.githubusercontent.com/956212/28995030-035ace24-79de-11e7-91bb-44e5a77cc8c1.gif)

Installation
------------

[](#installation)

If you are using composer you can make use of global packages.

```
$ composer global require mario-deluna/phptv
```

Make sure that you have exported the vendors bin path:

```
$ export PATH="$PATH:$HOME/.composer/vendor/bin"
```

You can also just download and use the prebuild `.phar`.

```
$ wget https://github.com/mario-deluna/PHPTv/blob/v1.0.1/phptv.phar?raw=true -O phptv.phar
```

And if you trust me, add it to your bin dir.

```
$ sudo chmod a+x phptv.phar
$ sudo mv phptv.phar /usr/local/bin/phptv
```

### Setting up the Pre-Shared Key (PSK)

[](#setting-up-the-pre-shared-key-psk)

1. Go To "Settings" &gt; "Network" &gt; "Home network setup" &gt; "IP control"
2. Set "Authentication" to "Normal and Pre-Shared Key"
3. Choose a "Pre-Shared Key". (Default is 0000)

Now you should be ready to use the remote.

Usage
-----

[](#usage)

To start the remote just enter `phptv  `.

```
$ phptv 192.168.1.42 0000
```

Remote key controls:

```
------------------------------------------------------------
| key | action      | description                          |
============================================================
| ←   | Left        | Navigate left                        |
------------------------------------------------------------
| →   | Right       | Navigate Right                       |
------------------------------------------------------------
| ↑   | Up          | Navigate Up                          |
------------------------------------------------------------
| ↓   | Down        | Navigate Down                        |
------------------------------------------------------------
| ↵   | Confirm     | Enter / Confirm                      |
------------------------------------------------------------
| ⌫   | Return      | Go Back / Return                     |
------------------------------------------------------------
| c   | Command     | Opens the command prompt.            |
------------------------------------------------------------
| f   | Forward     | Enter the forward raw commands mode. |
------------------------------------------------------------
| g   | Home        | Go Home.                             |
------------------------------------------------------------
| p   | TogglePower | Turns the TV on / Off                |
------------------------------------------------------------
| m   | Mute        | Mute / Unmute the Tv.                |
------------------------------------------------------------
| b   | VolumeDown  | Turn down for what?                  |
------------------------------------------------------------
| n   | VolumeUp    | Turn up the Volume                   |
------------------------------------------------------------

```

PS
--

[](#ps)

This is an absolute "just for fun" and "because I can" project. You will be off much faster just using the normal Remote. I still hope you like this little goof.

Credits
-------

[](#credits)

- [Mario Döring](https://github.com/mario-deluna)
- [All Contributors](https://github.com/mario-deluna/PHPTv/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/mario-deluna/PHPTv/blob/master/LICENSE) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

3199d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e61ab6a12a82ed3b52c6e12b8da02b5b903f4833b6e503ac94738c1a9e16c345?d=identicon)[mario-deluna](/maintainers/mario-deluna)

---

Top Contributors

[![mario-deluna](https://avatars.githubusercontent.com/u/956212?v=4)](https://github.com/mario-deluna "mario-deluna (30 commits)")

### Embed Badge

![Health badge](/badges/mario-deluna-phptv/health.svg)

```
[![Health](https://phpackages.com/badges/mario-deluna-phptv/health.svg)](https://phpackages.com/packages/mario-deluna-phptv)
```

###  Alternatives

[markstory/mini-asset

An asset compression library. Provides file concatenation and a flexible filter system for preprocessing and minification.

66741.1k3](/packages/markstory-mini-asset)[kubotak-is/php-del

Tool to remove code based on specific comments.

1640.8k](/packages/kubotak-is-php-del)[lochmueller/seocli

SEO CLI Tool

1113.4k](/packages/lochmueller-seocli)

PHPackages © 2026

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