2017 © Pedro Peláez
 

project subrip-file-parser

A library for SubRip (srt) files manipulation

image

delphiki/subrip-file-parser

A library for SubRip (srt) files manipulation

  • Wednesday, March 12, 2014
  • by delphiki
  • Repository
  • 0 Watchers
  • 0 Stars
  • 70,599 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

This repository is no longer maintained. The project moved to captioning/captioning

SubRip File PHP Parser

Julien Villetorte, 2010 (gdelphiki@gmail.com), (*1)

Installation with composer:

add this to your composer.json file: ``` json "require": { "delphiki/subrip-file-parser": "1.*" }, (*2)


run ``` sh php composer update

Usage:

``` php <?php, (*3)

require('src/SrtParser/srtFile.php');, (*4)

try{ $file = new \SrtParser\srtFile('./subtitles.srt');, (*5)

// display the text of the first entry
echo $file->getSub(0)->getText();

// merge 2 files and save the new generated file
$file2 = new srtFile('./subtitles2.srt');
$file->mergeSrtFile($file2);
$file->build();
$file->save('./new_subtitles.srt');

} catch(Exception $e){ echo 'Error: '.$e->getMessage()."\n"; } ```, (*6)

The Versions

12/03 2014

dev-master

9999999-dev

A library for SubRip (srt) files manipulation

  Sources   Download

BSD

23/02 2014

v1.1.1

1.1.1.0

A library for SubRip (srt) files manipulation

  Sources   Download

BSD

06/02 2014

v1.1.0

1.1.0.0

A library for SubRip (srt) files manipulation

  Sources   Download

BSD

20/11 2013

v1.0.1

1.0.1.0

A library for SubRip (srt) files manipulation

  Sources   Download

BSD

23/09 2013

v1.0.0

1.0.0.0

A library for SubRip (srt) files manipulation

  Sources   Download

BSD