2017 © Pedro Peláez
 

library media-validator

Audio and Video validator

image

makbari/media-validator

Audio and Video validator

  • Tuesday, April 17, 2018
  • by majidakbari
  • Repository
  • 1 Watchers
  • 0 Stars
  • 124 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 68 % Grown

The README.md

Media Validator

Validator for Audio and Video files in laravel framework based projects

Installation with Composer

curl -s http://getcomposer.org/installer | php
php composer.phar require makbari/media-validator

Usage

In laravel based projects form validation could be checked by several methods; but all of them have the same structure and syntax, (*1)


public function rules() { return [ 'video_input' => new \makbari\rules\validator\Video(), 'audio_file' => new \makbari\rules\validator\Audio(), 'image_file' => new \makbari\rules\validator\Image(), 'document_file' => new \makbari\rules\validator\Document(), ]; }

Also you can pass your valid types to the validators:, (*2)


public function rules() { return [ 'video_input' => new \makbari\rules\validator\Video(['mp4', 'mkv']) ]; }

Available formats

video - mp4, 3gp, flv, mkv, avi, asf, asx, wmv, mpeg
audio - mp3, wav, ogg, amr, wma, oga, m4a, m4b, ra, ram, mid, midi, aac
document - csv, doc, docx, pdf, ppt, xls, xlsx, txt, css, html, htm
image - jpg, jpeg, gif, png, bmp, tif, tiff, ico, (*3)

The Versions

17/04 2018

dev-master

9999999-dev

Audio and Video validator

  Sources   Download

MIT

The Requires

 

by Majid Akbari

17/04 2018

dev-develop

dev-develop

Audio and Video validator

  Sources   Download

MIT

The Requires

 

by Majid Akbari

17/04 2018

0.1.0

0.1.0.0

Audio and Video validator

  Sources   Download

MIT

The Requires

 

by Majid Akbari

17/04 2018

0.0.3

0.0.3.0

Audio and Video validator

  Sources   Download

MIT

The Requires

 

by Majid Akbari

17/04 2018

0.0.2

0.0.2.0

Audio and Video validator

  Sources   Download

MIT

The Requires

 

by Majid Akbari

17/04 2018

0.0.1

0.0.1.0

Audio and Video validator

  Sources   Download

MIT

The Requires

 

by Majid Akbari

17/04 2018

0.0.0

0.0.0.0

Audio and Video validator

  Sources   Download

MIT

The Requires

 

by Majid Akbari