Skip to content

quanvn1206/SubRip-File-Parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

SubRip File PHP Parser
Julien Villetorte, 2010 ([email protected])

Example:

try{
	$file = new srtFile('./subtitles.srt');

	// 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";
}

About

PHP Class allowing SubRip files (.srt) manipulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published