black-bits / preview-thumbnails
Preview Thumbnail Builder for the Laravel Framework
0.0.1
2017-09-19 21:20 UTC
Requires
- php: >=7.1.0
- illuminate/support: ^5.5
Requires (Dev)
- orchestra/testbench: ^3.5
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-10-29 05:22:23 UTC
README
Preview Thumbnail Builder for the Laravel Framework
How to use
// initialize test data $files = [ '1.jpg', '2.jpg', '3.jpg', ]; $timespan = 5; // in seconds
// option 1 $previewThumbnails = new \BlackBits\PreviewThumbnails\PreviewThumbnails($timespan); return $previewThumbnails->getVTT($files);
// option 2 $previewThumbnails = new \BlackBits\PreviewThumbnails\PreviewThumbnails(); $previewThumbnails->setTimespan($timespan); return $previewThumbnails->getVTT($files);
// option 3 $previewThumbnails = new \BlackBits\PreviewThumbnails\PreviewThumbnails(); return $previewThumbnails->setTimespan($timespan)->getVTT($files);
// option 4 return PreviewThumbnails::getVTT($files);
// option 5 return PreviewThumbnails::setTimespan($timespan)->getVTT($files);