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 b24271ca4a Fix shield links 3 weeks ago
docs Fix packagist link in docs 3 weeks ago
src SandFoxMe -> SandFox 1 year ago
tests Update phpunit constraints 3 weeks ago
.gitignore ignore test reports 3 years ago
.travis.yml Allow more PHPUnits 3 weeks ago
CHANGELOG.md Update changelog 1 year ago
LICENSE.md remove empty line 3 years ago
README.md Fix shield links 3 weeks ago
composer.json Update phpunit constraints 3 weeks ago
legacy.php SandFoxMe -> SandFox 1 year 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.