PHPackages                             lezhnev74/hls-monitor - 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. [CLI &amp; Console](/categories/cli)
4. /
5. lezhnev74/hls-monitor

ActiveProject[CLI &amp; Console](/categories/cli)

lezhnev74/hls-monitor
=====================

Console script to monitor that HLS links are accessible (supports adaptive streaming)

1.0.10(4y ago)12686MITPHP

Since Nov 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lezhnev74/HLS-monitor)[ Packagist](https://packagist.org/packages/lezhnev74/hls-monitor)[ RSS](/packages/lezhnev74-hls-monitor/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (12)Used By (0)

HLS-monitor
===========

[](#hls-monitor)

Console script to monitor that HLS links are accessible (supports adaptive streaming)

Install via Composer
--------------------

[](#install-via-composer)

```
composer require lezhnev74/hls-monitor

```

Usage
-----

[](#usage)

Package comes with a console file located at `vendor/bin/hls-monitor`. Check that playlist is available and all it's streams are accessible from the Internet (in 10 simultaneous connections)

```
vendor/bin/hls-monitor playlists --log log.txt --concurrency=10 https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8

```

Output will be something like this:

```
#---------------------------------------------------
Executed on node:
Date of execution: 29.11.2016, 10:04 UTC
#---------------------------------------------------

Concurrency level:50
Playlists fetching is over in 0.7s
Streams fetching is over in 0.68s
Chunks fetching is over in 255.22s

```

The console command will return code `0` if no problems found. In case of some stream is not accessible, you will see someting like this:

```
#---------------------------------------------------
Executed on node:
Date of execution: 29.11.2016, 11:11 UTC
#---------------------------------------------------

Downloading playlist...DONE
Playlist is located on: 127.0.0.1
Found streams in playlist: 3
Started checking streams
Stream is not accessible: http://m3u8provider.dev.com/stream2.m3u8
Stream has unaccessible chunks:
|--Chunk: http://m3u8provider.dev.com/04.ts
|--Chunk: http://m3u8provider.dev.com/05.ts
|---
Checking Streams is DONE

```

Reporting
---------

[](#reporting)

At this version library has no reporting capabilities.

You will have to write a wrapper for this tool which will capture all of the failed output and will email it to you or report to somewhere.

Pseudo code looks like this:

```
$playlists = [...many playlists to check...];
$failed_reports = [];

// for each given playlist - make checking
$output = [];
$return_code = 0;
exec('vendor/bin/hls-monitor playlists '.implode(",",$playlists), $output, $return_code);

if($return_code) {
   // there were problems with this palylist
   $failed_reports[] = $output;
}

// then report if anything is not good
if(count($failed_reports)) {
   // mail reports to somewhere
}
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

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

Recently: every ~475 days

Total

10

Last Release

1546d ago

### Community

Maintainers

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

---

Top Contributors

[![lezhnev74](https://avatars.githubusercontent.com/u/10206110?v=4)](https://github.com/lezhnev74 "lezhnev74 (29 commits)")

---

Tags

consolehlshls-linkshls-monitorhls-streammonitorphpstream

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lezhnev74-hls-monitor/health.svg)

```
[![Health](https://phpackages.com/badges/lezhnev74-hls-monitor/health.svg)](https://phpackages.com/packages/lezhnev74-hls-monitor)
```

###  Alternatives

[drush/drush

Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

2.4k57.4M685](/packages/drush-drush)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M13](/packages/pantheon-systems-terminus)[statamic/cli

Statamic CLI Tool

7587.7k](/packages/statamic-cli)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

9989.0k](/packages/mehrancodes-laravel-harbor)[chromatic/usher

A collection of Robo commands for use on Chromatic projects.

13534.3k1](/packages/chromatic-usher)[php-school/php-workshop

PHP Workshop Framework

466.3k6](/packages/php-school-php-workshop)

PHPackages © 2026

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