Simple and fast methods to read private properties and call private methods

1.3.0 2019-04-08 23:44 UTC

This package is auto-updated.

Last update: 2020-12-21 01:45:19 UTC


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.