smudger/transcriptions

Load and parse VTT files.

v0.4.0 2022-06-22 14:42 UTC

This package is auto-updated.

Last update: 2025-06-22 21:21:39 UTC


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.