https://github.com/takuya/php-epgdump-xml-parser
epgdumpをphp/simplexmlでパースすする
https://github.com/takuya/php-epgdump-xml-parser
Last synced: 11 months ago
JSON representation
epgdumpをphp/simplexmlでパースすする
- Host: GitHub
- URL: https://github.com/takuya/php-epgdump-xml-parser
- Owner: takuya
- License: gpl-3.0
- Created: 2022-01-17T08:29:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-17T08:55:49.000Z (over 4 years ago)
- Last Synced: 2025-06-16T04:22:29.007Z (12 months ago)
- Language: PHP
- Size: 293 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-epgdump-parser
epgdumpをphp/simplexmlでパースすする
## usage
```php
programmes();
$channels = $dumper->channels();
```
## run test
```
time ./vendor/bin/phpunit
```
## サンプルデータ
元データ
```xml
BSニュース
▽国内外のニュースや気象情報をお伝えします。 ※スポーツ中継がある場合は、放送時間や内容が変更になります。
ニュース・報道
news
```
出力配列
```php
[
'channel' => [
'uid' => '4101.epgdata.ontvjapan',
'name' => 'NHK BS1',
],
'title' => 'BSニュース',
'description' => '▽国内外のニュースや気象情報をお伝えします。 ※スポーツ中継がある場合は、放送時間や内容が変更になります。',
'time' => [
'start' => '2022-01-17T16:50:00+09:00',
'stop' => '2022-01-17T17:00:00+09:00',
],
'categoroy' => [
'en' => 'news',
'ja' => 'ニュース・報道',
],
]
```