PHP code example of sylvainjule / subtitler
1. Go to this page and download the library: Download sylvainjule/subtitler library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sylvainjule / subtitler example snippets
foreach($page->mysubtitles()->toStructure() as $subtitle) {
// do something
}
foreach($page->mysubtitles()->getTimeline('timelinekey') as $subtitle) {
// do something
}
// we make sure that the video file exists
if($video = $page->src()->toFile()):
// we make sure that the video file exists
if($video = $page->src()->toFile()):