PHPackages                             kubrey/epg-ncplus - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. kubrey/epg-ncplus

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

kubrey/epg-ncplus
=================

EPG parser of ncplus.pl

0.2.5(9y ago)183MITPHPPHP &gt;=5.3.0

Since May 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/kubrey/epg-ncplus)[ Packagist](https://packagist.org/packages/kubrey/epg-ncplus)[ RSS](/packages/kubrey-epg-ncplus/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (7)Used By (0)

EPG parser for ncplus.pl
========================

[](#epg-parser-for-ncpluspl)

### Usage

[](#usage)

```
require_once('vendor/autoload.php');

use ncplus/EpgParser;

$parser = new EpgParser();
// to get all channels programs for day
$data = $parser->loadDay(date('Y-m-d');
if($data){
    $programs = $parser->parseCommonData($data);
}

```

`$programs` is an array with 2 keys: `channels` and `programs`

`$programs['channels']` is an array where keys are channel's id and value is channel's name

`$programs['programs']` is multidimensional array of programs for each channel

E.g.:

```
[961]=>
    array(10) {
      [0]=>
      array(6) {
        ["id"]=>
        int(22084262)
        ["name"]=>
        string(6) "Tuvalu"
        ["airDate"]=>
        string(10) "2016-05-05"
        ["airTime"]=>
        string(8) "08:25:00"
        ["airLength"]=>
        int(5400)
        ["idChannel"]=>
        int(961)
      }
      [1]=>
      array(6) {
        ["id"]=>
        int(22084263)
        ["name"]=>
        string(6) "Idiota"
        ["airDate"]=>
        string(10) "2016-05-05"
        ["airTime"]=>
        string(8) "09:55:00"
        ["airLength"]=>
        int(10200)
        ["idChannel"]=>
        int(961)
      }
      ...

```

In this example `961` is channel id

To get information on program:

```
$program = $parser->getProgramInfo($id);//$id - program's id from $programs['programs']
if($program){
    $parsed = $parser->parseProgramData($program);
}

```

This should return something like this

```
array(6) {
  ["descr"]=>
  string(269) "Anton marzy, by uciec na wyspę zwaną Tuvalu. Wszystko wskazuje jednak na to, że jego marzenie raczej się nie spełni biorąc pod uwagę, że Anton pracuje jako konserwator mało popularnego basenu należącego do jego niewidomego ojca. Bohater za wszelką cenę ..."
  ["urlNcpluspl"]=>
  string(45) "2710953-tuvalu-filmbox-arthouse-20160505-0725"
  ["category"]=>
  NULL
  ["country"]=>
  string(6) "Niemcy"
  ["movieCast"]=>
  string(98) "Denis Lavant, Chulpan Khamatova, Philippe Clay, Terrence Gillespie, Catalina Murgea, E.J. Callahan"
  ["movieDirector"]=>
  string(11) "Veit Helmer"
}

```

###  Health Score

25

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Recently: every ~1 days

Total

6

Last Release

3569d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ab745970e4e681a9552aae39d9b2a88b7d78272082324e83e5cb153c47c2329?d=identicon)[kubrey](/maintainers/kubrey)

---

Top Contributors

[![kubrey](https://avatars.githubusercontent.com/u/1605716?v=4)](https://github.com/kubrey "kubrey (10 commits)")

---

Tags

parsermoviesepgncplus

### Embed Badge

![Health badge](/badges/kubrey-epg-ncplus/health.svg)

```
[![Health](https://phpackages.com/badges/kubrey-epg-ncplus/health.svg)](https://phpackages.com/packages/kubrey-epg-ncplus)
```

###  Alternatives

[nikic/php-parser

A PHP parser written in PHP

17.4k887.0M1.6k](/packages/nikic-php-parser)[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.2k896.2M97](/packages/doctrine-lexer)[erusev/parsedown

Parser for Markdown.

15.0k150.2M630](/packages/erusev-parsedown)[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

2.9k393.7M556](/packages/league-commonmark)[masterminds/html5

An HTML5 parser and serializer.

1.8k234.7M187](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k185.5M57](/packages/sabberworm-php-css-parser)

PHPackages © 2026

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