Registry / testing / spatie-invade

spatie-invade

JSON →
library2.1.0phppackagistunverified

A PHP function to work with private properties and methods

composer require spatie/invade
INSTALL
IMPORT
SIG · SPATIE-INVADE
S
spatie-invade
testingphpv2.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.

Invader
use Spatie\Invade\Invader;

Access private properties and methods of an object.

use Spatie\Invade\Invader; $object = new SomeClass(); $invader = new Invader($object); echo $invader->privateProperty; $invader->privateMethod();
Debug
Known issues
gotchaUsing this in production may break encapsulation and cause unexpected behavior.
fix
Only use for testing or debugging purposes.
affects: >=2.0.0
Upgrade
Version history
2.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
10
Resources
spatie-invade — pip install spatie-invade · libregistry