[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8260":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":15,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":16,"starSnapshotCount":16,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},8260,"comparator","sebastianbergmann\u002Fcomparator","sebastianbergmann","Provides the functionality to compare PHP values for equality.","",null,"PHP",7052,70,7,1,0,5,36.55,"BSD 3-Clause \"New\" or \"Revised\" License",false,"main",[],"2026-06-12 02:01:51","[![Latest Stable Version](https:\u002F\u002Fposer.pugx.org\u002Fsebastian\u002Fcomparator\u002Fv)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fsebastian\u002Fcomparator)\n[![CI Status](https:\u002F\u002Fgithub.com\u002Fsebastianbergmann\u002Fcomparator\u002Fworkflows\u002FCI\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fsebastianbergmann\u002Fcomparator\u002Factions)\n[![codecov](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fsebastianbergmann\u002Fcomparator\u002Fbranch\u002Fmain\u002Fgraph\u002Fbadge.svg)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fsebastianbergmann\u002Fcomparator)\n\n# sebastian\u002Fcomparator\n\nThis component provides the functionality to compare PHP values for equality.\n\n## Installation\n\nYou can add this library as a local, per-project dependency to your project using [Composer](https:\u002F\u002Fgetcomposer.org\u002F):\n\n```\ncomposer require sebastian\u002Fcomparator\n```\n\nIf you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:\n\n```\ncomposer require --dev sebastian\u002Fcomparator\n```\n\n## Usage\n\n```php\n\u003C?php\nuse SebastianBergmann\\Comparator\\Factory;\nuse SebastianBergmann\\Comparator\\ComparisonFailure;\n\n$date1 = new DateTime('2013-03-29 04:13:35', new DateTimeZone('America\u002FNew_York'));\n$date2 = new DateTime('2013-03-29 03:13:35', new DateTimeZone('America\u002FChicago'));\n\n$factory = new Factory;\n$comparator = $factory->getComparatorFor($date1, $date2);\n\ntry {\n    $comparator->assertEquals($date1, $date2);\n    print \"Dates match\";\n} catch (ComparisonFailure $failure) {\n    print \"Dates don't match\";\n}\n```\n","sebastian\u002Fcomparator 是一个用于比较 PHP 值是否相等的库。其核心功能在于提供了一种灵活且强大的方式来比较不同类型的数据，包括但不限于日期、数组和自定义对象。通过使用工厂模式创建合适的比较器，该库能够处理复杂的比较逻辑，并在值不匹配时抛出异常。适用于需要精确控制数据比较逻辑的场景，特别是在单元测试中验证预期结果与实际输出的一致性。此外，作为 PHP 测试工具生态系统的一部分，它遵循 BSD 3-Clause 许可证，确保了广泛的兼容性和易于集成的特点。",2,"2026-06-11 03:17:03","top_language"]