captioning / captioning
A collection of tools to manipulate subtitles
Installs: 1 134 560
Dependents: 7
Suggesters: 0
Security: 0
Stars: 225
Watchers: 13
Forks: 48
Open Issues: 26
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ^6.0|^9.0
This package is auto-updated.
Last update: 2025-06-20 15:41:54 UTC
README
Captioning is a collection of tools made to help you create and edit subtitles in different formats:
- Subrip (.srt)
- WebVTT (.vtt)
- Substation Alpha (.ass)
- Youtube Subtitles (.sbv)
- JSON (TED.com) Subtitles (.json)
- [WIP] TTML (.dfxp)
Installation
composer require captioning/captioning "2.*"
Usage
Examples and snippets in the wiki.
TODO-list
- [Substation Alpha] add dynamic parsing if events format is not the default one
- [WebVTT] Check if the region defined in WebvttFile object in WebvttCue::checkSetting()
- [TTML] Implement the buildPart method