2017 © Pedro Peláez
 

library subrip

Subrip file parser for PHP

image

mattwoo/subrip

Subrip file parser for PHP

  • Tuesday, November 22, 2016
  • by mattwoo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Subrip (.srt) file parser for PHP

Installation

composer require mattwoo/subrip

Creating srt file

//Create subtitle position
$position = new \Mattwoo\Subrip\SubripPosition(100, 200, 100, 200);
//Create next subtitle row (single subtitle)
$row = new \Mattwoo\Subrip\SubripRow(1 '00:00:00.000', '00:00:10.000', 'text', $position);
//Create new subrip fle
$file = new \Mattwoo\Subrip\SubripFile();
//Add row to file
$file->addRow($row);
//Get created file content as string
$fileContent = $file->__toString();

Reading srt file

//Parse file into SubripFile object
$file = new \Mattwoo\Subrip\SubripFile($content);

The Versions

22/11 2016

dev-master

9999999-dev

Subrip file parser for PHP

  Sources   Download

BSD

by Mateusz Westwalewicz

22/11 2016

v0.1.3.3

0.1.3.3

Subrip file parser for PHP

  Sources   Download

BSD

by Mateusz Westwalewicz

09/11 2016

v0.1.3.2

0.1.3.2

Subrip file parser for PHP

  Sources   Download

BSD

by Mateusz Westwalewicz

08/11 2016

v0.1.3.1

0.1.3.1

Subrip file parser for PHP

  Sources   Download

BSD

by Mateusz Westwalewicz

08/11 2016

v0.1.3

0.1.3.0

Subrip file parser for PHP

  Sources   Download

BSD

by Mateusz Westwalewicz

08/11 2016

v0.1.2

0.1.2.0

Subrip file parser for PHP

  Sources   Download

BSD

by Mateusz Westwalewicz

08/11 2016

v0.1.1

0.1.1.0

Subrip file parser for PHP

  Sources   Download

BSD

by Mateusz Westwalewicz

08/11 2016

v0.1

0.1.0.0

Subrip file parser for PHP

  Sources   Download

BSD

by Mateusz Westwalewicz