forked from delphiki/SubRip-File-Parser
-
Notifications
You must be signed in to change notification settings - Fork 0
PHP Class allowing SubRip files (.srt) manipulation
quanvn1206/SubRip-File-Parser
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published