Registry / utility / duncan3dc-object-intruder

duncan3dc-object-intruder

JSON →
library1.1.0phppackagistunverified

A small library to access private/protected properties/methods of objects

composer require duncan3dc/object-intruder
INSTALL
IMPORT
SIG · DUNCAN3DC-OBJECT-I
D
duncan3dc-object-intruder
utilityphpv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Intruder
✓ use duncan3dc\ObjectIntruder\Intruder;

Access private property of an object

use duncan3dc\ObjectIntruder\Intruder; $obj = new SomeClass(); $intruder = new Intruder($obj); $value = $intruder->getProperty('privateProperty');
Debug
Known issues
gotchaBreaks encapsulation; use only for testing or debugging
fix
Avoid in production code; prefer reflection or proper getters
affects: *
Upgrade
Version history
1.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
duncan3dc-object-intruder — pip install duncan3dc-object-intruder · libregistry