smudger / transcriptions
Load and parse VTT files.
v0.4.0
2022-06-22 14:42 UTC
Requires
- php: >=8.1
Requires (Dev)
- phpunit/phpunit: ^9.5
README
This small PHP package assists in the loading and parsing of VTT files.
Usage
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 license.