An open API service indexing awesome lists of open source software.

https://github.com/takuya/php-epgdump-wrapper


https://github.com/takuya/php-epgdump-wrapper

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# epgdump command php wrapper

epgdump のコマンドをいつも間違えるので、ラッパーを書いた

## sample 01
```php
BS()
->setTsFile( '-' )
->setOutFile( '-' )
->setInput( $ts )
->start()
->wait()
->getProcess()
->getOutput();

```

## sample 02
ssh経由で
```php
BS()
->setTsFile( '-' )
->setOutFile( '-' )
->setInput( $ts )
->start()
->wait()
->getProcess()
->getOutput();

```
## sample 03
recpt1 の出力をそのまま使う。
```php
start();

$epgdump = new Epgdump('ssh 192.168.10.5 epgdump');
$xml = $epgdump
->BS()
->setTsFile( '-' )
->setOutFile( '-' )
->setInput( $p1_out )
->start()
->wait()
->getProcess()
->getOutput();

```
Process クラスは ` composer require takuya/process` でインストール。

### epgdump
https://github.com/stz2012/epgdump