awesome-repositories.com
المدونة
MCP
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعحولكيفية ترتيب النتائجالصحافةخادم MCP
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
sebastianbergmann avatar

sebastianbergmann/comparator

0
View on GitHub↗
7,053 نجوم·70 تفرعات·PHP·BSD-3-Clause·5 مشاهدات

Comparator

This library is a data assertion tool and equality logic framework for PHP. It provides utilities to verify that two values, nested objects, or complex data types match based on their internal contents.

The project distinguishes itself through the use of custom matching rules and configurable precision. It allows for the comparison of floating point numbers and dates using a defined margin of error to account for numeric precision loss.

The framework covers deep value equality verification across scalars, arrays, and nested objects. It implements strict type enforcement to prevent implicit conversions and uses recursive traversal to analyze internal data structures for integrity validation.

Features

  • Deep Equality Comparison - Provides utilities for recursively comparing nested data structures and objects by value rather than reference.
  • Tolerant Type Comparisons - Allows comparison of complex types, such as dates and numbers, using specified tolerance levels to determine equality.
  • Equality Logic Frameworks - Implements a framework for comparing scalars, arrays, and objects with configurable precision and strict type checking.
  • Precision-Tolerant Comparisons - Determines equality for floating point numbers and decimals by checking if the difference falls within a specified numeric range.
  • Type-Safe Equality Enforcements - Prevents implicit type conversion during comparison to ensure that only identical data types are considered equal.
  • Type-Aware Matching - Validates that both values share the same internal PHP type before proceeding to compare their contents.
  • Data Structure Traversers - Recursively walks through nested arrays and objects to verify the integrity of every element in the data structure.
  • PHP Data Assertion Tools - Provides a specialized tool for verifying that PHP values or nested objects match based on internal contents.
  • PHP Value Comparators - Compares complex PHP data types and nested objects to determine equality based on internal contents.
  • PHP Value Comparison Libraries - Provides a comprehensive library for checking equality between complex PHP data types using custom tolerance and matching rules.
  • Structural Data Validators - Verifies if data sets or configuration arrays match by analyzing their internal structure and scalar values.
  • PHP Testing Frameworks - Provides flexible equality checks and numeric tolerances for verifying actual output against expected values in PHP test suites.

سجل النجوم

مخطط تاريخ النجوم لـ sebastianbergmann/comparatorمخطط تاريخ النجوم لـ sebastianbergmann/comparator

بحث بالذكاء الاصطناعي

استكشف المزيد من المستودعات الرائعة

صف ما تحتاجه بلغة بسيطة — وسيقوم الذكاء الاصطناعي بترتيب آلاف المشاريع مفتوحة المصدر المنسقة حسب الصلة.

Start searching with AI

الأسئلة الشائعة

ما هي وظيفة sebastianbergmann/comparator؟

This library is a data assertion tool and equality logic framework for PHP. It provides utilities to verify that two values, nested objects, or complex data types match based on their internal contents.

ما هي الميزات الرئيسية لـ sebastianbergmann/comparator؟

الميزات الرئيسية لـ sebastianbergmann/comparator هي: Deep Equality Comparison, Tolerant Type Comparisons, Equality Logic Frameworks, Precision-Tolerant Comparisons, Type-Safe Equality Enforcements, Type-Aware Matching, Data Structure Traversers, PHP Data Assertion Tools.

ما هي البدائل مفتوحة المصدر لـ sebastianbergmann/comparator؟

تشمل البدائل مفتوحة المصدر لـ sebastianbergmann/comparator: symfony/validator — This library is a PHP framework for enforcing data integrity and business rules by validating scalar values and… hamcrest/hamcrest-php — Hamcrest PHP is a declarative assertion framework and matcher library used for unit testing in PHP. It provides a set… sideway/joi — Joi is a JavaScript data validation library used to define schemas that ensure the structure and data types of objects… samchon/typia — Typia is a compile-time code generator that transforms TypeScript type annotations into runtime validation,… facebook/immutable-js — This is a persistent data structure library for JavaScript that provides collections which prevent the direct mutation… masterminds/sprig — Sprig is a comprehensive library of helper functions designed to extend the Go text template engine. It provides a…

بدائل مفتوحة المصدر لـ Comparator

مشاريع مفتوحة المصدر مشابهة، مرتبة حسب عدد الميزات المشتركة مع Comparator.
  • symfony/validatorالصورة الرمزية لـ symfony

    symfony/validator

    2,689عرض على GitHub↗

    This library is a PHP framework for enforcing data integrity and business rules by validating scalar values and complex object structures against predefined constraints. It provides a structured approach to inspecting object graphs and property metadata, ensuring that data conforms to expected requirements before it is processed by an application. The framework distinguishes itself through a metadata-driven mapping system that uses reflection or configuration files to apply rules directly to object properties. It supports contextual rule orchestration, allowing developers to organize constrai

    PHPcomponentphpsymfony
    عرض على GitHub↗2,689
  • hamcrest/hamcrest-phpالصورة الرمزية لـ hamcrest

    hamcrest/hamcrest-php

    7,007عرض على GitHub↗

    Hamcrest PHP is a declarative assertion framework and matcher library used for unit testing in PHP. It provides a set of flexible matchers to verify object states, data types, and collection contents. The library includes specialized tools for XML verification using XPath expressions to analyze document structures and element content. It also allows for the creation of complex validation rules by combining multiple independent matchers through logical operators. The framework covers a broad range of validation primitives, including string content inspection, numeric comparison, and object pr

    PHP
    عرض على GitHub↗7,007
  • sideway/joiالصورة الرمزية لـ sideway

    sideway/joi

    21,192عرض على GitHub↗

    Joi is a JavaScript data validation library used to define schemas that ensure the structure and data types of objects remain consistent. It functions as a schema-based validator and object schema definition tool, preventing invalid information from entering an application by checking data against predefined constraints and rules. The library employs a chainable fluent interface and a constraint-based validation engine to build complex validation pipelines. It utilizes recursive tree traversal to validate nested data structures and a type-coercion pipeline to transform input values into the t

    JavaScript
    عرض على GitHub↗21,192
  • samchon/typiaالصورة الرمزية لـ samchon

    samchon/typia

    5,837عرض على GitHub↗

    Typia is a compile-time code generator that transforms TypeScript type annotations into runtime validation, serialization, and schema functions without requiring decorators or separate schema files. It generates optimized validation and serialization code during TypeScript compilation, producing dedicated functions for each type that eliminate runtime schema objects for faster execution. The project extends this core capability into several integrated areas. It generates fully typed client SDKs from NestJS controller source code, keeping server and client types synchronized automatically. It

    Go
    عرض على GitHub↗5,837
  • عرض جميع البدائل الـ 30 لـ Comparator→