PHP Classes

VM PHP Validator Package: Validate objects using rules defined in comments

Recommend this page to a friend!
  Info   View files View files (129)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2022-05-27 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 67 This week: 4All time: 10,032 This week: 35Up
Version License PHP version Categories
vmvalidator 2.4.1MIT/X Consortium ...8Validation, Language, PHP 8
Description Author

This package can validate objects using rules defined in comments.

It can use PHP reflection support to extract validation rules defined by the class comments.

The package provides classes that implement several types of validation rules.

The package can validate the parameters passed to the class functions, return values, class variables, and class constants.

Suppose one of the validated values does not satisfy the validation rules. In that case, the package triggers an exception that applications can handle to process the claims when the class validated by this package uses invalid values.

Innovation Award
PHP Programming Innovation award nominee
May 2022
Nominee
Vote
Validation of data retrieved from external sources like the user input is mandatory in any robust PHP application.

There are many approaches to validating external data.

This package provides an alternative that simplifies the validation process of data passed to classes of objects or returned by those objects.

It uses PHP reflection to minimize the amount of PHP code necessary to validate data passed to classes of objects.

This way, developers reduce the effort to implement robust validation in their PHP applications.

Manuel Lemos
Picture of Ivan Grigorov
  Performance   Level  
Innovation award
Innovation award
Nominee: 1x

 

  Files folder image Files  
File Role Description
Files folder imagedocs (2 files)
Files folder imageRMValidator (6 directories)
Files folder imagetests (3 files, 4 directories)
Accessible without login Plain text file .gitignore Data Auxiliary data
Accessible without login Plain text file codeception.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Plain text file index.php Class Class source
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Plain text file README.md Class Read me
Accessible without login Plain text file _config.yml Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:67
This week:4
All time:10,032
This week:35Up

For more information send a message to info at phpclasses dot org.