PHPackages                             ivangrigorov/vmvalidator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. ivangrigorov/vmvalidator

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

ivangrigorov/vmvalidator
========================

Simple Request Model Validation

2.4.2(3y ago)98373MITPHPPHP ^8.0

Since Jun 28Pushed 3y ago6 watchersCompare

[ Source](https://github.com/IvanGrigorov/VMValidator)[ Packagist](https://packagist.org/packages/ivangrigorov/vmvalidator)[ Docs](https://github.com/IvanGrigorov/VMValidator)[ RSS](/packages/ivangrigorov-vmvalidator/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (4)Versions (23)Used By (0)

VMValidator
===========

[](#vmvalidator)

[![VMValidator test check](https://github.com/IvanGrigorov/VMValidator/actions/workflows/php.yml/badge.svg)](https://github.com/IvanGrigorov/VMValidator/actions/workflows/php.yml)

[![VMValidator](https://user-images.githubusercontent.com/10940601/150609303-c7566864-06ce-402b-90c8-85cfcb70e55c.jpg)](https://user-images.githubusercontent.com/10940601/150609303-c7566864-06ce-402b-90c8-85cfcb70e55c.jpg)

[![](https://camo.githubusercontent.com/cd9b69db6a2902188087a72fa6fa4fc71610f92baa65cd3489c46b1d1ce40b63/68747470733a2f2f62616467656e2e6e65742f62616467652f636f6465253230636f7665726167652f37302532302532352f677265656e3f69636f6e3d636f6465636f76)](https://camo.githubusercontent.com/cd9b69db6a2902188087a72fa6fa4fc71610f92baa65cd3489c46b1d1ce40b63/68747470733a2f2f62616467656e2e6e65742f62616467652f636f6465253230636f7665726167652f37302532302532352f677265656e3f69636f6e3d636f6465636f76) [![](https://camo.githubusercontent.com/4f6fd9af6bb0e225885f239350991c28d2f8a8ff9d5cf5d0911f7f913147ec35/68747470733a2f2f62616467656e2e6e65742f62616467652f6275696c642f70617373696e672f677265656e3f69636f6e3d737461747573)](https://camo.githubusercontent.com/4f6fd9af6bb0e225885f239350991c28d2f8a8ff9d5cf5d0911f7f913147ec35/68747470733a2f2f62616467656e2e6e65742f62616467652f6275696c642f70617373696e672f677265656e3f69636f6e3d737461747573) [![](https://camo.githubusercontent.com/972bcffafced810e90ed54583696269f93642a1768066b453c8fc8444832ccd7/68747470733a2f2f62616467656e2e6e65742f62616467652f69636f6e2f6275796d6561636f666665653f69636f6e3d6275796d6561636f66666565266c6162656c)](https://camo.githubusercontent.com/972bcffafced810e90ed54583696269f93642a1768066b453c8fc8444832ccd7/68747470733a2f2f62616467656e2e6e65742f62616467652f69636f6e2f6275796d6561636f666665653f69636f6e3d6275796d6561636f66666565266c6162656c)

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/b308ed4649f7bf657b2b741497cc6008d6d3595c960dba00ac6dd1982603aacb/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f79656c6c6f775f696d672e706e67)](https://www.buymeacoffee.com/ivangrigorov)

Hello, this is simple attribute validation for PHP Models, based on the new features, presented in [PHP 8](https://www.php.net/releases/8.0/en.php) It works as a standalone and can be use in custom projects or in libraries like Symfony and Laravel.

Use just [three rows](https://github.com/IvanGrigorov/VMValidator/blob/2139877c4ca6ae01f60729db2d83f9c5e087096d/index.php), alogside some [attributes](https://github.com/IvanGrigorov/VMValidator/blob/2139877c4ca6ae01f60729db2d83f9c5e087096d/index.php):

Example
=======

[](#example)

```
