Simple and fast methods to read private properties and call private methods
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Anton Smirnov 192f9bef14 Update doc link 9 months ago
docs Add documentation. Simplify readme 1 year ago
src SandFoxMe -> SandFox 1 year ago
tests get_private_const 3 years ago
.gitignore ignore test reports 3 years ago
.travis.yml Drop hhvm, allow nightly to fail 1 year ago Update changelog 1 year ago remove empty line 3 years ago Update doc link 9 months ago
composer.json Update doc link 9 months ago
legacy.php SandFoxMe -> SandFox 1 year ago

PHP Private Access

Packagist License Travis

A small simple library to access private properties of the objects. Actually it's more an example of mad skillz than a useful tool. No Reflection API calls!


Use composer:

composer require sandfoxme/private-access --dev


These four simple functions can come in handy as helpers for something like PsySH

  • get_private_field()
  • set_private_field()
  • call_private_method()
  • get_private_const()

Read full documentation here:


The library is available as open source under the terms of the MIT License.