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 3 months ago
docs Add documentation. Simplify readme 7 months ago
src SandFoxMe -> SandFox 7 months ago
tests get_private_const 2 years ago
.gitignore ignore test reports 2 years ago
.travis.yml Drop hhvm, allow nightly to fail 7 months ago
CHANGELOG.md Update changelog 7 months ago
LICENSE.md remove empty line 3 years ago
README.md Update doc link 3 months ago
composer.json Update doc link 3 months ago
legacy.php SandFoxMe -> SandFox 7 months ago

README.md

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!

Installation

Use composer:

composer require sandfoxme/private-access --dev

Usage

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: https://sandfox.dev/php/private-access.html

License

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