phpbg / dvbpsi
This is a pure PHP DVB PSI library, developed with performance in mind
Installs: 1 586
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
- ext-calendar: *
- evenement/evenement: ^3.0
- myclabs/php-enum: ^1.5
- phpbg/mpegts: ^0.2.0
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2024-11-08 20:38:51 UTC
README
This is a pure PHP DVB PSI library, developed with performance in mind. It tries to comply with "Digital Video Broadcasting (DVB) - Specification for Service Information (SI) in DVB systems" DVB PSI ETSI EN 300 468 V1.13.1
Status
The initial goal is to provide parsing for following tables :
- PAT: done
- PMT: mostly
- NIT: mostly (missing some descriptors)
- BAT: not yet planned
- SDT: not yet planned
- EIT: mostly (missing some descriptors)
- TDT: done
- TOT: todo
- RST: not yet planned
- ST: not yet planned
- DIT: not yet planned
- SIT: not yet planned
Requirements
- PHP7+ x64
- Composer
Those requirements can be installed on ubuntu 16.04:
sudo apt install php7.0-cli composer
Or on windows:
NB: 32bit will partly work but should be avoided because some structures are unsigned 32bit and PHP will store them as signed 32bit. See: http://php.net/manual/en/function.unpack.php#refsect1-function.unpack-notes
Installation
Simply run:
composer require phpbg/dvbpsi
Examples
See examples/
folder
Development
You can install xdebug for development purposes:
sudo apt install php-xdebug
To run unit tests launch:
php vendor/phpunit/phpunit/phpunit -c phpunit.xml
NB: to report code coverage add --coverage-text
but keep in mind that launching with code coverage increase greatly the time required for tests to run (thus do not reflect real use case compute time)