sebastian/comparator
Compare PHP values for equality with dedicated comparators for scalars, arrays, objects, dates, and more. Part of PHPUnit, it reports detailed differences via ComparisonFailure exceptions and ships a Factory for selecting the right comparator.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sebastian/object-enumerator | 0.85 | Traverses arrays and object graphs to enumerate every referenced object, including nested structures and circular references. A small utility from Sebastian Bergmann's PHP testing stack, commonly pulled in by PHPUnit to walk object graphs safely. | 6,527 | 6,530 | 9 | 24M | 1 | 42.3 | 56.2 | BSD-3-Clause | 2 months ago | |
| sebastian/recursion-context | 0.84 | sebastian/recursion-context is a small PHP utility for tracking recursive traversals and avoiding infinite loops when walking nested structures. It provides the RecursionContext class used by sebastian/comparator and PHPUnit to handle recursion safely. | 6,556 | 6,561 | 19 | 26M | 1 | 44.0 | 56.4 | BSD-3-Clause | 2 months ago | |
| sebastian/object-reflector | 0.84 | sebastian/object-reflector lets you reflect an object's properties, including inherited, private, and protected ones. Install it via Composer to inspect and access object state that PHP's default reflection utilities don't easily expose. | 6,271 | 6,277 | 3 | 25M | 1 | 41.8 | 56.4 | BSD-3-Clause | 2 months ago | |
| sebastian/peek-and-poke | 0.84 | sebastian/peek-and-poke is a small PHP utility that uses reflection to peek at and poke into objects. It lets you read and write private and protected properties, making it handy for tests that need to inspect or set up object state without changing production code. | 36 | 34 | 8 | 117 | 1 | 0.3 | 6.0 | NOASSERTION | — | |
| pisac/pisac | 0.84 | Pisac is a lightweight Laravel/PHP package that provides a simple, extensible writer-style toolkit for generating and managing application content, making it easy to add text-driven features with clean, Composer-ready integration. | 10 | 10 | 0 | 0 | 0 | 0.4 | — | MIT | 5 years ago | |
| sebastian/type | 0.84 | A collection of value objects that model the PHP type system, including simple, union, intersection, and special types. Use it to inspect, compare, and represent type information programmatically in PHP projects. | 1,503 | 1,503 | 13 | 24M | 1 | 27.4 | 62.7 | BSD-3-Clause | 2 months ago | |
| sebastian/phpdcd | 0.84 | PHP Dead Code Detector (phpdcd) is a command-line tool that scans PHP codebases for unused functions and methods, helping teams find dead code to remove. Part of Sebastian Bergmann's tooling, it is now archived and largely superseded by modern static analysis tools. | 408 | 405 | 45 | 4K | 0 | 1.7 | 9.8 | NOASSERTION | — | |
| stephenjude/api-test-helper | 0.84 | stephenjude/api-test-helper is a Laravel package that streamlines API testing with convenient helpers and expressive assertions for HTTP and JSON responses. It reduces boilerplate around authentication, request building, and response checks, helping you write cleaner, faster, more reliable API test... | 47 | — | 1 | — | 0 | 0.3 | — | MIT | 3 years ago | |
| phpbench/phpbench | 0.83 | PHPBench is a benchmark runner for PHP, analogous to PHPUnit but measuring performance rather than correctness. It repeats code, samples iterations in isolated processes, and offers customizable reports, baseline storage and comparison, memory tracking, and assertions to catch regressions. | 2,028 | 2,022 | 132 | 672K | 29 | 46.1 | 52.8 | MIT | 4 months ago | |
| sebastian/exporter | 0.83 | Exports PHP variables into readable, stable string representations for visualization and debugging. Handles scalars, arrays, objects, resources, binary strings, and recursive references, producing clear output useful in test failures and developer tooling. | 6,810 | 6,819 | 40 | 16M | 1 | 48.6 | 52.8 | BSD-3-Clause | 3 months ago | |
| nicolasguilloux/phpunit-dependency-injection-bundle | 0.83 | A PHPUnit dependency injection bundle that lets tests resolve services from a container instead of constructing dependencies manually. Keeps test classes lean and setup simple for container-based PHP apps. Low adoption, so expect limited docs and community support. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 4 years ago | |
| sebastian/global-state | 0.83 | Snapshot and restore PHP global state with sebastian/global-state, the standalone component extracted from PHPUnit. Capture globals, superglobals, static properties, and constants for reliable test isolation. | 6,591 | 6,592 | 18 | 24M | 1 | 39.4 | 54.3 | BSD-3-Clause | 5 months ago | |
| sebastian/diff | 0.83 | sebastian/diff is a standalone PHP diff library, factored out of PHPUnit. It generates unified, strict unified, or diff-only output, parses unified diffs into object graphs, and supports custom output builders. Install via Composer as a project or development dependency. | 7,642 | 7,706 | 90 | 15M | 1 | 46.6 | 52.0 | BSD-3-Clause | 2 months ago | |
| dragon-code/benchmark | 0.83 | dragon-code/benchmark is a simple PHP benchmarking package for comparing code execution speed across multiple options. Use bench() or Benchmark with named closures and view min, max, avg, and total timings in the console. Install via Composer as a dev dependency. | 121 | 120 | 4 | 2K | 0 | 20.7 | 18.0 | MIT | 6 months ago | |
| testmonitor/eloquent-revisable | 0.83 | Keep a full revision history for your Eloquent models. This package automatically saves snapshots on create, update, and delete, lets you inspect what changed, and restore or revert models to any previous version through a simple, familiar API. | 2 | 2 | 3 | 80 | 0 | 19.3 | 23.3 | MIT | 3 weeks ago | |
| eliashaeussler/deep-closure-comparator | 0.83 | PHPUnit comparator/assertion that deeply compares closures inside objects/arrays by serializing them via opis/closure. Use DeepClosureAssert::assertEquals() as a drop-in replacement for PHPUnit’s assertEquals when closures should be treated as equal. | 0 | 0 | 0 | 1K | 1 | 8.9 | 35.9 | GPL-3.0 | 5 months ago | |
| sebastian/complexity | 0.83 | Compute code complexity metrics for PHP units (functions, methods, classes). sebastian/complexity provides programmatic analysis useful for static analysis tools, quality gates, and CI reporting; install via Composer for project or dev-only use. | 1,260 | 1,260 | 12 | 23M | 1 | 13.1 | 57.8 | BSD-3-Clause | 9 months ago | |
| cocur/vale | 0.83 | cocur/vale is a lightweight PHP value validation library. Define reusable rules to validate strings, numbers, arrays, and objects, and get clear, consistent results without pulling in a full framework—handy for DTOs, APIs, and input sanitization. | 14 | 14 | 1 | 3K | 0 | 0.7 | 32.1 | MIT | 11 years ago | |
| php-standard-library/comparison | 0.83 | Interfaces and functions for type-safe, consistent value comparison in PHP, part of the PHP Standard Library. Provides predictable equality and ordering semantics across values, helping you write reliable, uniform comparison logic in your applications. | 1 | 1 | 0 | 90K | 0 | 21.5 | 64.8 | MIT | 1 week ago | |
| fisharebest/algorithm | 0.83 | A small PHP library of reusable algorithm implementations, including Dijkstra shortest-path and topological sorting, for graph traversal, dependency ordering, and routing tasks in Laravel or any Composer-based PHP project. | 71 | — | 23 | — | 3 | 2.0 | 1.1 | GPL-3.0 | — |
|
How can I help you explore Laravel packages today?