Author: Manuel Lemos
Updated on: 2022-06-20
Posted on: 2022-06-20
Package: VM PHP Validator Package
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.
About the VM PHP Validator Package Package
The basic purpose is: Validate objects using rules defined in comments
Here follows in more detail what it does:
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.
This package was considered notable for implementing its benefits in a way that is worth noticing.
Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.
If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package as well nice prizes.
One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.
You need to be a registered user or login to post a comment
1,597,331 PHP developers registered to the PHP Classes site.
Be One of Us!
Login Immediately with your account on:
No comments were submitted yet.