PHPackages                             chubbyphp/chubbyphp-validation-doctrine - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. chubbyphp/chubbyphp-validation-doctrine

Abandoned → [chubbyphp/chubbyphp-validation](/?search=chubbyphp%2Fchubbyphp-validation)ArchivedLibrary[Validation &amp; Sanitization](/categories/validation)

chubbyphp/chubbyphp-validation-doctrine
=======================================

Chubbyphp Validate

4.0.0(2y ago)5111MITPHPPHP ^8.1

Since Oct 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/chubbyphp/chubbyphp-validation)[ Packagist](https://packagist.org/packages/chubbyphp/chubbyphp-validation-doctrine)[ RSS](/packages/chubbyphp-chubbyphp-validation-doctrine/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (16)Versions (69)Used By (0)

chubbyphp-validation
====================

[](#chubbyphp-validation)

[![CI](https://github.com/chubbyphp/chubbyphp-validation/workflows/CI/badge.svg?branch=master)](https://github.com/chubbyphp/chubbyphp-validation/actions?query=workflow%3ACI)[![Coverage Status](https://camo.githubusercontent.com/5c0b6ba1a4271e069260b62d641eed3d289e88f78f2207fcfe5d27360c18830e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6368756262797068702f6368756262797068702d76616c69646174696f6e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/chubbyphp/chubbyphp-validation?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/9f4d27471fdc1ae58a8778f47f7daadc6b1bd1914ccb1e64b033ab5853e7f9d0/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466368756262797068702532466368756262797068702d76616c69646174696f6e2532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-validation/master)[![Latest Stable Version](https://camo.githubusercontent.com/c79fa5f22de338059ddd4460b8cbf381cac04e75d3d35f3a25d2fe6de7082f39/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d76616c69646174696f6e2f762f737461626c652e706e67)](https://packagist.org/packages/chubbyphp/chubbyphp-validation)[![Total Downloads](https://camo.githubusercontent.com/6c6276c94ed03e28d5543489838a3537b426bec23bef945c9f8f5bfb8ea159ab/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d76616c69646174696f6e2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/chubbyphp/chubbyphp-validation)[![Monthly Downloads](https://camo.githubusercontent.com/b3f4786f768ecd0126eefe3da7a356e65f43892340938c37c231ccb4059fcf24/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d76616c69646174696f6e2f642f6d6f6e74686c79)](https://packagist.org/packages/chubbyphp/chubbyphp-validation)

[![bugs](https://camo.githubusercontent.com/6e7bf2ce38c5d0e9eb9a5ad5d6fa1ec1f1543e6b38bc0a469218f6cb1f60473e/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d76616c69646174696f6e266d65747269633d62756773)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-validation)[![code_smells](https://camo.githubusercontent.com/5660626638157dd79d0c6e920330fbc6369524059a84b3a458636339906d207e/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d76616c69646174696f6e266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-validation)[![coverage](https://camo.githubusercontent.com/307d09422a13fe71795cd41fdb939842157fb9ddc069a56071187c4c4a819817/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d76616c69646174696f6e266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-validation)[![duplicated_lines_density](https://camo.githubusercontent.com/47d0978ab1369da1087e6c51fce84286511056f3b830f37eb1f051cc1d966112/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d76616c69646174696f6e266d65747269633d6475706c6963617465645f6c696e65735f64656e73697479)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-validation)[![ncloc](https://camo.githubusercontent.com/2906d01418c8b9636b7b528fbbac563333886dd166f0e36a121a26fcb07e4ff1/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d76616c69646174696f6e266d65747269633d6e636c6f63)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-validation)[![sqale_rating](https://camo.githubusercontent.com/896c6140bbcc80264383c516a9eb277d9dd112a5bb158842021eda0309364ae5/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d76616c69646174696f6e266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-validation)[![alert_status](https://camo.githubusercontent.com/6983af6bfadabe4854076bfcb669d48fc9fe7312104b86906ea4e3e7626579cc/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d76616c69646174696f6e266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-validation)[![reliability_rating](https://camo.githubusercontent.com/c7d6485701d2f7615be5fa43eaca413e837d8000c3680de2578fdedf553429d1/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d76616c69646174696f6e266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-validation)[![security_rating](https://camo.githubusercontent.com/ad6afc300442fd7eb9fb8265895dff0797ef6c298f9606d224ef6d09eb6f52c1/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d76616c69646174696f6e266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-validation)[![sqale_index](https://camo.githubusercontent.com/fb3d67bf2a5b6a17f84653d8265c98a40db912a78dc821631ce50fcdfd97dfb5/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d76616c69646174696f6e266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-validation)[![vulnerabilities](https://camo.githubusercontent.com/fbaec6ce884a7192311e2ec34427f21beab09b0fb068473b1fe47a88981dd157/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d76616c69646174696f6e266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-validation)

Description
-----------

[](#description)

A simple validation.

DEPRECATED: No personal interest anymore and based on stats nobody seems to use it. Feel free to create an issue if you disagree. Please take a look to [chubbyphp-parsing](https://github.com/chubbyphp/chubbyphp-parsing) its a different concept. But i believe parsing is the way to go instead of deserialze/validate.

Requirements
------------

[](#requirements)

- php: ^8.1
- psr/log: ^2.0|^3.0

Suggest
-------

[](#suggest)

- chubbyphp/chubbyphp-container: ^2.2
- pimple/pimple: ^3.5
- psr/container: ^2.0.2

Installation
------------

[](#installation)

Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-validation](https://packagist.org/packages/chubbyphp/chubbyphp-validation).

```
composer require chubbyphp/chubbyphp-validation "^4.0"
```

Usage
-----

[](#usage)

### Accessor

[](#accessor)

- [MethodAccessor](doc/Accessor/MethodAccessor.md)
- [PropertyAccessor](doc/Accessor/PropertyAccessor.md)

### Constraint

[](#constraint)

- [AllConstraint](doc/Constraint/AllConstraint.md)
- [BlankConstraint](doc/Constraint/BlankConstraint.md)
- [CallbackConstraint](doc/Constraint/CallbackConstraint.md)
- [ChoiceConstraint](doc/Constraint/ChoiceConstraint.md)
- [CoordinateArrayConstraint](doc/Constraint/CoordinateArrayConstraint.md)
- [CoordinateConstraint](doc/Constraint/CoordinateConstraint.md)
- [CountConstraint](doc/Constraint/CountConstraint.md)
- [DateTimeConstraint](doc/Constraint/DateTimeConstraint.md)
- [EmailConstraint](doc/Constraint/EmailConstraint.md)
- [FalseConstraint](doc/Constraint/FalseConstraint.md)
- [MapConstraint](doc/Constraint/MapConstraint.md)
- [NotBlankConstraint](doc/Constraint/NotBlankConstraint.md)
- [NotNullConstraint](doc/Constraint/NotNullConstraint.md)
- [NullConstraint](doc/Constraint/NullConstraint.md)
- [NumericConstraint](doc/Constraint/NumericConstraint.md)
- [NumericRangeConstraint](doc/Constraint/NumericRangeConstraint.md)
- [TrueConstraint](doc/Constraint/TrueConstraint.md)
- [TypeConstraint](doc/Constraint/TypeConstraint.md)
- [ValidConstraint](doc/Constraint/ValidConstraint.md)

#### Doctrine

[](#doctrine)

- [UniqueConstraint](doc/Constraint/Doctrine/UniqueConstraint.md)

#### Symfony

[](#symfony)

- [ConstraintAdapter](doc/Constraint/Symfony/ConstraintAdapter.md)

### Error

[](#error)

- [ApiProblemErrorMessages](doc/Error/ApiProblemErrorMessages.md)
- [Error](doc/Error/Error.md)
- [ErrorMessages](doc/Error/ErrorMessages.md)
- [NestedErrorMessages](doc/Error/NestedErrorMessages.md)

### Mapping

[](#mapping)

- [CallableValidationMappingProvider](doc/Mapping/CallableValidationMappingProvider.md)
- [LazyValidationMappingProvider](doc/Mapping/LazyValidationMappingProvider.md)
- [ValidationClassMapping](doc/Mapping/ValidationClassMapping.md)
- [ValidationClassMappingBuilder](doc/Mapping/ValidationClassMappingBuilder.md)
- [ValidationMappingProviderRegistry](doc/Mapping/ValidationMappingProviderRegistry.md)
- [ValidationPropertyMapping](doc/Mapping/ValidationPropertyMapping.md)
- [ValidationPropertyMappingBuilder](doc/Mapping/ValidationPropertyMappingBuilder.md)

#### ValidationMappingProvider

[](#validationmappingprovider)

```
