Skip to content

lenardpalko/VideoLengthValidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VideoLengthValidator

A very basic validator that can validate if the length of a video is under a specific value.

It uses https://github.com/PHP-FFMpeg/PHP-FFMpeg to get the duration of the video, so you need to have ffprobe installed on your system.

Usage

<?php

use LenardPalko\Validator\VideoLengthValidator;

$validator = new VideoLengthValidator;
if ($validator->isValid($filePath, $maxLength)) {
	echo "Video is too long. $filePath exceeds $maxLength s";
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages