Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/smudger/transcriptions

Load and parse VTT files.
https://github.com/smudger/transcriptions

Last synced: about 1 month ago
JSON representation

Load and parse VTT files.

Awesome Lists containing this project

README

        

# VTT Transcriptions

This small PHP package assists in the loading and parsing of VTT files.

## Usage

```php
use Smudger\Transcriptions\Transcription;

$transcription = Transcription::load('path/to/file.vtt');

foreach ($transcription->lines() as $line) {
// $line->body
// $line->toAnchorTag()

// $line->beginningTimestamp()
}
```

## License

This package is open-sourced software licensed under the [MIT](https://opensource.org/licenses/MIT) license.