PHPackages                             giorgijorji/webvtt-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. giorgijorji/webvtt-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

giorgijorji/webvtt-parser
=========================

PHP library to parse webvtt

v1.1.4(6y ago)1571MITPHPPHP &gt;=5.3.0CI failing

Since Mar 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/giorgijorji/webvtt-parser)[ Packagist](https://packagist.org/packages/giorgijorji/webvtt-parser)[ Docs](https://github.com/giorgijorji/webvtt-parser)[ RSS](/packages/giorgijorji-webvtt-parser/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (7)Used By (0)

Giorgijorji WebVTT Parser \[Based on podlove webwtt parser\]
============================================================

[](#giorgijorji-webvtt-parser-based-on-podlove-webwtt-parser)

PHP library to parse WebVTT files.

It follows the [W3C spec](https://w3c.github.io/webvtt/), but it's not complete. For example, it does not have special treatment for CSS styles.

Usage
-----

[](#usage)

```
use Giorgijorji\Webvtt\Parser;
use Giorgijorji\Webvtt\ParserException;

$parser = new Giorgijorji\Webvtt\Parser();
$content = "WEBVTT\n\n00:00:00.000 --> 01:22:33.440\nHello world\n\n01:22:33.440 --> 01:22:34.440\nHi again\n";
$result = $parser->parse($content);
// [
//   "cues" => [
//     [
//       "voice" => "",
//       "start" => 0,
//       "end" => 4953.44,
//       "text" => "Hello world",
//       "identifier" => "",
//     ],
//     [
//       "voice" => "Eric",
//       "start" => 4953.44,
//       "end" => 4954.44,
//       "text" => "Hi again",
//       "identifier" => "",
//     ],
//   ],
// ]
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 95.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~142 days

Recently: every ~178 days

Total

6

Last Release

2279d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13024167?v=4)[Giorgi Metivishvili](/maintainers/giorgijorji)[@giorgijorji](https://github.com/giorgijorji)

---

Top Contributors

[![eteubert](https://avatars.githubusercontent.com/u/235918?v=4)](https://github.com/eteubert "eteubert (23 commits)")[![giorgijorji](https://avatars.githubusercontent.com/u/13024167?v=4)](https://github.com/giorgijorji "giorgijorji (1 commits)")

---

Tags

parserwebvttgiorgijorji

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/giorgijorji-webvtt-parser/health.svg)

```
[![Health](https://phpackages.com/badges/giorgijorji-webvtt-parser/health.svg)](https://phpackages.com/packages/giorgijorji-webvtt-parser)
```

###  Alternatives

[nikic/php-parser

A PHP parser written in PHP

17.4k902.6M1.8k](/packages/nikic-php-parser)[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.2k910.8M118](/packages/doctrine-lexer)[erusev/parsedown

Parser for Markdown.

15.0k151.8M732](/packages/erusev-parsedown)[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

2.9k404.0M702](/packages/league-commonmark)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
