Download the PHP package benjaminmal/parity-checker without Composer
On this page you can find all versions of the php package benjaminmal/parity-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package parity-checker
Parity-checker
A PHP parity checker. Useful when you want to check if many objects are having the same datas. It has many options so you can configure the behavior you need, especially speaking of object recursion.
Installation
Getting started
Create the Parity checker using the factory:
Or using your implementations using Symfony PropertyAccess & PropertyInfo components
Check your objects
Usages
Options
Option | Description | Accepted types | Default values |
---|---|---|---|
ignore_types |
Do not perform check on these types | string[]\|string . Can be any types. Checked by the is_ functions, classes/interfaces names or object properties (must be prefixed by $ ) |
object |
only_types |
Perform checks only on these types. ignore_types is evaluated before, so if you set the same type in both ignore_types and only_types , the type will be ignored. |
string[]\|string . Can be any types. Checked by the is_ functions, classes/interfaces names or object properties (must be prefixed by $ ) |
none |
loose_types |
On which type to perform loose check (== ) instead of (=== ) |
string[]\|string . Can be any types. Checked by the is_ functions, classes/interfaces names or object properties (must be prefixed by $ ) |
none |
deep_object_limit |
The object recursion limit | int |
0 |
data_mapper |
Replace value before checking by your closure | ParityCheckCallbackInterface[] |
datetime_check_format , date_interval_format , datetime_zone mappers |
datetime_check_format |
The format that DateTime must be check with |
bool\|string . Has to be a valid DateTime format. If it's true , Y-m-d H:i:s is used. |
true |
date_interval_format |
The format that DateInterval must be check with |
bool\|string . Has to be a valid DateInterval format. If it's true, %R %Y %M %D %H %I %S %F is used. |
true |
datetime_zone |
Map DateTimeZone objects to its timezone name in order to check it. E.g Europe/Paris |
bool |
true |
custom_checkers |
You can set you own checker which replace other | ParityCheckCallbackInterface[] |
none |
Errors
All versions of parity-checker with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
phpdocumentor/reflection-docblock Version ^5.3
symfony/options-resolver Version ^5.4 || ^6.0
symfony/property-access Version ^5.4 || ^6.0
symfony/property-info Version ^5.4 || ^6.0
webmozart/assert Version ^1.10
phpdocumentor/reflection-docblock Version ^5.3
symfony/options-resolver Version ^5.4 || ^6.0
symfony/property-access Version ^5.4 || ^6.0
symfony/property-info Version ^5.4 || ^6.0
webmozart/assert Version ^1.10
The package benjaminmal/parity-checker contains the following files
Loading the files please wait ....