smudger/transcriptions

Load and parse VTT files.

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/smudger/transcriptions

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

This package is auto-updated.

Last update: 2025-11-22 22:09:17 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.