PHPackages                             jalle19/php-tvheadend - 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. [API Development](/categories/api)
4. /
5. jalle19/php-tvheadend

ActiveLibrary[API Development](/categories/api)

jalle19/php-tvheadend
=====================

Library for communicating with tvheadend

0.3.0(5y ago)1537[1 issues](https://github.com/Jalle19/php-tvheadend/issues)GNU GPL v2.0PHP

Since Feb 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Jalle19/php-tvheadend)[ Packagist](https://packagist.org/packages/jalle19/php-tvheadend)[ RSS](/packages/jalle19-php-tvheadend/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (11)Used By (0)

php-tvheadend
=============

[](#php-tvheadend)

This is a PHP library for communicating with and controlling tvheadend instances. So far it is quite limited, it only supports the features I've needed myself so far. It is built on a generic framework where each class represents a model in tvheadend, e.g. a network, a mux, a channel and so on. The library communicates with tvheadend using a HTTP client. The client can be overridden if necessary.

The library also includes a base class for creating CLI commands that perform specific tasks against tvheadend. To utilize it, simply include this library in your project and extend the `Jalle19\tvheadend\cli\TvheadendCommand`class. The base command provides a way to request switches and flags from the user, as well as asking for input.

### Installation

[](#installation)

```
composer require jalle19/php-tvheadend

```

### Example usage (library)

[](#example-usage-library)

```
require_once('/path/to/vendor/autoload.php');
use Jalle19\tvheadend;

// Create a new instance
$tvheadend = new tvheadend\Tvheadend('localhost', 9981);

// Create an IPTV network
$network = new tvheadend\model\network\IptvNetwork();
$network->networkname = 'Test network';
$network->max_streams = 5;

try {
  $tvheadend->createNetwork($network);
}
catch (tvheadend\exception\RequestFailedException $e) {
  die('Failed to create network');
}

// Loop through all networks and print their respective names
foreach ($tvheadend->getNetworks as $network)
  echo $network->networkname.PHP_EOL;
```

### Example usage (command)

[](#example-usage-command)

```
// let's call this file command.php
require_once(__DIR__.'/vendor/autoload.php');
new Jalle19\tvheadend\cli\TvheadendCommand();
```

Output when run using `php command.php`:

```
 command.php
--help
     Show the help page for this command.

--tvheadend-hostname
     Required. The hostname where tvheadend is running

--tvheadend-http-port
     The tvheadend HTTP port

--tvheadend-password
     The tvheadend password

--tvheadend-username
     The tvheadend username

```

### License

[](#license)

The library is licensed under the GNU GPL verison 2

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Recently: every ~417 days

Total

10

Last Release

1856d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7e28ec3bf2ff3ffcdd8c947f54d53d4dae86939bea2a7316cfde0b10410e9ee?d=identicon)[Jalle19](/maintainers/Jalle19)

---

Top Contributors

[![Jalle19](https://avatars.githubusercontent.com/u/1106133?v=4)](https://github.com/Jalle19 "Jalle19 (19 commits)")

### Embed Badge

![Health badge](/badges/jalle19-php-tvheadend/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[magento/community-edition

Magento 2 (Open Source)

12.1k53.0k12](/packages/magento-community-edition)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67210.4M25](/packages/googleads-googleads-php-lib)[googleads/google-ads-php

Google Ads API client for PHP

3478.1M11](/packages/googleads-google-ads-php)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k406.5k25](/packages/team-reflex-discord-php)

PHPackages © 2026

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