Download the PHP package mihaeu/sub-modifier without Composer
On this page you can find all versions of the php package mihaeu/sub-modifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mihaeu/sub-modifier
More information about mihaeu/sub-modifier
Files in mihaeu/sub-modifier
Package sub-modifier
Short Description SubModifier modifies subtitle files by increasing or decreasing and by re-indexing the subtitle entries.
License MIT
Homepage https://github.com/mihaeu/sub-modifier
Informations about the package sub-modifier
Sub Modifier
SubModifier modifies subtitle files by increasing or decreasing the subtitle files and by re-indexing the subtitles (in case a subtitle file has to be split up for multi-part movies).
Currently only supports .srt
files.
Installation
If you want to use this as a package for a separate project (assuming composer was installed globally):
In most cases however this is more useful installed globally along with other tools like phpunit, phing, etc. as a global script:
Make sure the global composer path (usually ~/.composer/bin
) is in your $PATH
.
Usage
Assuming I'm in a movie directory with a subtitle that I want to delay by 10 seconds, I would do the following (overwriting the old file):
Tests
Run the PHPUnit tests from the project root like so:
To get readable output like this (requires for you to have code coverage in your php setup, otherwise, remove that option):
License
The MIT License (MIT)
Copyright (c) 2014 Michael Haeuslmann
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Epilogue
Goodbye and have a nice day.