PHP Classes
elePHPant
Icontem

PTK Validation: Validate values of dates, files and directories

Recommend this page to a friend!
  Info   View files Example   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2014-11-19 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 130 All time: 8,305 This week: 1,306Up
Version License PHP version Categories
ptk-validation 1.0GNU General Publi...5.3PHP 5, Validation
Description Author

This package can validate values of dates, files and directories.

It can perform several types of validation for values that can represent different types of data.

For numbers it can check if the values and within a minimum and maximum, the value is a multiple of a given step value, or is present in a given list of allowed values.

For dates it can check if the date is valid, is withing a minimum or maximum value, or is it in a given valid list of days, months, years, or week days.

For files it can check if the directory is one of valid directories, has one of the allowed permissions, the size is within a minimum and maximum value, the type is one of the allowed types, the file name matches a pattern, the file is executable, a link, is readable or writeable, is an uploaded file, the file name extension is one of the allowed extensions, the MIME type is one of the allowed types.

For directories it can check if the path is a valid directory, it is readable or writeable, the directory is empty.

Picture of Everton da Rosa
  Performance   Level  
Name: Everton da Rosa <contact>
Classes: 18 packages by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imageexample (7 files)
Files folder imageptk (1 directory)

  Files folder image Files  /  example  
File Role Description
  Accessible without login Plain text file examples.inc.php Conf. Configuration script
  Accessible without login Plain text file recordset.php Example Example script
  Accessible without login Plain text file recordset_1.php Example Example script
  Accessible without login Plain text file validation_dates.php Example Example script
  Accessible without login Plain text file validation_directory.php Example Example script
  Accessible without login Plain text file validation_files.php Example Example script
  Accessible without login Plain text file validation_string_numbers.php Example Example script

  Files folder image Files  /  ptk  
File Role Description
Files folder imagelib (4 files)

  Files folder image Files  /  ptk  /  lib  
File Role Description
  Plain text file ptk.db.recordset.class_1.php Class Class source
  Plain text file ptk.fs.filefolder.directory.class.php Class Class source
  Plain text file ptk.fs.filefolder.file.class.php Class Class source
  Plain text file ptk.utils.validator.class.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 0%
Total:130
This week:0
All time:8,305
This week:1,306Up