2017 © Pedro Peláez
 

library webvtt-parser

PHP library to parse webvtt

image

podlove/webvtt-parser

PHP library to parse webvtt

  • Thursday, June 28, 2018
  • by eteubert
  • Repository
  • 2 Watchers
  • 2 Stars
  • 132 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

Podlove WebVTT Parser

PHP library to parse WebVTT files., (*1)

It follows the W3C spec, but it's not complete. For example, it does not have special treatment for CSS styles., (*2)

Usage

use Podlove\Webvtt\Parser;
use Podlove\Webvtt\ParserException;

$parser = new Podlove\Webvtt\Parser();
$content = "WEBVTT\n\n00:00:00.000 --> 01:22:33.440\nHello world\n\n01:22:33.440 --> 01:22:34.440\n<v Eric>Hi 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" => "",
//     ],
//   ],
// ]

The Versions

28/06 2018

dev-master

9999999-dev https://github.com/podlove/webvtt-parser

PHP library to parse webvtt

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

parser webvtt podlove

28/06 2018

v1.1.3

1.1.3.0 https://github.com/podlove/webvtt-parser

PHP library to parse webvtt

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

parser webvtt podlove

04/04 2018

v1.1.2

1.1.2.0 https://github.com/podlove/webvtt-parser

PHP library to parse webvtt

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

parser webvtt podlove

04/04 2018

v1.1.1

1.1.1.0 https://github.com/podlove/webvtt-parser

PHP library to parse webvtt

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

parser webvtt podlove

03/03 2018

v1.1.0

1.1.0.0 https://github.com/podlove/webvtt-parser

PHP library to parse webvtt

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

parser webvtt podlove

03/03 2018

v1.0.0

1.0.0.0 https://github.com/podlove/webvtt-parser

PHP library to parse webvtt

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

parser webvtt podlove