gollumsf/reflection-property-test
A lightweight PHP testing helper for asserting on class properties via reflection. Inspect and verify private and protected property values in unit and feature tests, keeping assertions concise, readable, and easy to maintain.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| skagarwal/reflection | 0.80 | — | 6 | 7 | 0 | 30 | 0 | 0.9 | 7.1 | MIT | 11 years ago | |
| sebastian/peek-and-poke | 0.79 | 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 | — | |
| sajadsdi/php-reflection | 0.79 | Lightweight wrapper around PHP’s built-in Reflection API. Inspect classes by name or instance and quickly fetch ReflectionClass plus lists of properties, methods, and constants. Simple Reflections helper for common reflection tasks. | 1 | 1 | 0 | 0 | 0 | 0.3 | — | MIT | 2 years ago | |
| phpdocumentor/reflection-common | 0.79 | ReflectionCommon provides the shared interfaces and base classes behind phpDocumentor's reflection layer, defining common contracts for elements, types, and locations used across the ecosystem. A lightweight, dependency-free foundation for building reflection-based tooling in PHP. | 9,031 | 9,044 | 22 | 12M | 0 | 47.6 | 50.4 | MIT | 1 month ago | |
| ergebnis/test-util | 0.79 | ergebnis/test-util is a lightweight collection of reusable test utilities for PHP projects, designed to reduce boilerplate and make common testing tasks clearer. Useful alongside PHPUnit for writing concise, maintainable tests with consistent helpers and assertions. | 15 | 15 | 2 | 2K | 0 | 0.1 | 20.9 | MIT | 4 years ago | |
| phpdocumentor/reflection | 0.78 | Static PHP code reflection library that parses one or more files (no execution) to build an object graph of your application's structure, including DocBlocks. Supports analyzing PHP versions from 5.2 up to your installed PHP version; useful for reflecting whole projects. | 124 | 126 | 60 | 907K | 8 | 26.3 | 60.9 | MIT | 5 months ago | |
| sebastian/object-reflector | 0.78 | 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 | |
| raphhh/trex-reflection | 0.78 | Lightweight PHP reflection helper focused on analyzing types, classes and members with a cleaner API than native Reflection. Great for tooling, static analysis, and code generation tasks—extract signatures, docblocks, visibility, and metadata with minimal boilerplate. | 14 | 14 | 3 | 6K | 0 | 2.6 | 35.7 | MIT | 6 years ago | |
| brick/reflection | 0.78 | Low-level PHP 8.1+ helpers extending native reflection. ReflectionTools can list all instance methods/properties across inheritance (including private parents), get class hierarchies, and create reflections for any callable with meaningful function names. | 23 | 24 | 3 | 6K | 1 | 17.8 | 37.1 | MIT | 7 months ago | |
| rekalogika/direct-property-access | 0.77 | Direct Property Access lets you read and write private and protected object properties in PHP without getters or setters, using reflection under the hood. Useful for tests, fixtures, and legacy code, with a clean, type-safe API and optional property-path support. | 1 | 1 | 0 | 808 | 0 | 10.8 | 40.1 | MIT | 5 months ago | |
| suin/php-expose | 0.77 | Expose helps PHPUnit tests access private/protected properties and methods in PHP objects. Use a simple fluent API to set non-public attributes and call hidden methods without changing production code. Requires PHP 5.3+ and installs via Composer. | 5 | 5 | 1 | 84 | 0 | 0.1 | 16.2 | — | — | |
| nyholm/nsa | 0.77 | Testing helper to access and manipulate private/protected properties and methods in PHP. Set/get instance or static properties and invoke hidden methods to simplify tests and improve DX. Install via Composer: nyholm/nsa. | 228 | 229 | 11 | 104K | 0 | 15.9 | 40.6 | MIT | 7 months ago | |
| mockery/mockery | 0.77 | Mockery is a flexible PHP mock object framework for unit testing with PHPUnit, PHPSpec, or any other testing framework. It offers a succinct, human-readable DSL for defining test doubles and integrates easily as a drop-in alternative to PHPUnit's mocking library. | 10,724 | 10,808 | 470 | 19M | 89 | 84.3 | 77.1 | BSD-3-Clause | 2 months ago |
How can I help you explore Laravel packages today?