PHPackages                             omroepgelderland/nielsen-asrun - 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. omroepgelderland/nielsen-asrun

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

omroepgelderland/nielsen-asrun
==============================

Generator for Nielsen Hybrid Audit AsRunLogs and Program Before files.

1.1.0(1y ago)156MITPHPPHP ^8.1

Since Oct 17Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/omroepgelderland/nielsen-asrun)[ Packagist](https://packagist.org/packages/omroepgelderland/nielsen-asrun)[ RSS](/packages/omroepgelderland-nielsen-asrun/feed)WikiDiscussions master Synced 3w ago

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

Formatter for ‘As Run Log’ and ‘Program Before’ files for Nielsen Hybrid Audit
==============================================================================

[](#formatter-for-as-run-log-and-program-before-files-for-nielsen-hybrid-audit)

Generates the ‘program before’ files which are sent before the broadcast day and the ‘as run logs’ which are sent after the end of the broadcast day. See the docs directory for the format specification and use.

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

[](#installation)

This library requires PHP8.1.0 or higher. The recommended way to install is through Composer:

```
composer require omroepgelderland/nielsen-asrun
```

Usage example
-------------

[](#usage-example)

```
use nielsen_asrun\Entry;
use nielsen_asrun\Log;
use nielsen_asrun\PromoType;
use nielsen_asrun\RepeatCode;
use nielsen_asrun\TypologySource;

$log = Log::create_asrunlog([
    'typology_source' => TypologySource::None,
    'encoding' => 'iso-8859-1',
    'broadcast_day' => new \DateTime('2024-06-17'),
    'author' => 'Omroep Brabant',
    'channel_name' => 'OB',
    'channel_abbreviation' => 'tvbrab'
]);

// Add a program entry
$log->add_entry(Entry::create_program_entry([
    'channel_id' => 234,
    'omroepen' => ['OB'],
    'starttime' => new \DateTime('2024-06-17 02:00:00'),
    'endtime' => new \DateTime('2024-06-17 02:03:29'),
    'prog_id' => '4453719',
    'unharmonized_title' => 'KRAAK.',
    'repeat_code' => RepeatCode::Last7Days
]));

// Add a break entry
$log->add_entry(Entry::create_break_entry([
    'channel_id' => 234,
    'omroepen' => ['OB'],
    'starttime' => new \DateTime('2024-06-17 06:57:04'),
    'endtime' => new \DateTime('2024-06-17 06:59:54'),
    'unharmonized_title' => '64'
]));

// Add a promo entry
$log->add_entry(Entry::create_promo_entry([
    'channel_id' => 234,
    'omroepen' => ['OB'],
    'starttime' => new \DateTime('2024-06-17 02:03:30'),
    'endtime' => new \DateTime('2024-06-17 02:03:34'),
    'unharmonized_title' => 'BÜMPAT BUMPER AFL. TERUGKIJKEN BRABANT+ - 2023',
    'promo_type_id' => PromoType::Promo,
    'promo_id' => '4365342'
]));

// Add a station id entry
$log->add_entry(Entry::create_station_id_entry([
    'channel_id' => 234,
    'omroepen' => ['OB'],
    'starttime' => new \DateTime('2024-06-17 07:04:53'),
    'endtime' => new \DateTime('2024-06-17 07:05:00'),
    'unharmonized_title' => 'SID 206 BOSFIETS - 2024-03-25 - 2024-07-01',
    'promo_id' => '4435714'
]));

// Merge consecutive breaks
$log->merge_breaks();

// Save to file
\file_put_contents($log->get_filename(), $log);
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance60

Regular maintenance activity

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

569d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ac13e43c1c6df09a557996cf442c5318728ab0f7c5da7db9e6cf26ae464c9ae?d=identicon)[remyglaser](/maintainers/remyglaser)

---

Top Contributors

[![remyglaser](https://avatars.githubusercontent.com/u/11977799?v=4)](https://github.com/remyglaser "remyglaser (13 commits)")

---

Tags

nielsenasrunlogasrunlogshybrid audit

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/omroepgelderland-nielsen-asrun/health.svg)

```
[![Health](https://phpackages.com/badges/omroepgelderland-nielsen-asrun/health.svg)](https://phpackages.com/packages/omroepgelderland-nielsen-asrun)
```

###  Alternatives

[prggmr/xpspl

Signals for PHP

911.3k](/packages/prggmr-xpspl)

PHPackages © 2026

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