2017 © Pedro Peláez
 

library reflection

Allow to directly access protected/private properties and call protected/private methods.

image

crowdstar/reflection

Allow to directly access protected/private properties and call protected/private methods.

  • Tuesday, June 26, 2018
  • by deminy
  • Repository
  • 5 Watchers
  • 0 Stars
  • 133 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status Latest Stable Version Latest Unstable Version License, (*1)

A PHP reflection library to directly access protected/private properties and call protected/private methods. Static properties and methods can also be accessed/invoked from a class directly., (*2)

This library works with major versions of PHP from 5.3 to 8.2., (*3)

Installation

For PHP 8.0+, please use version 2.0:, (*4)

composer require crowdstar/reflection:~2.0.0

For old versions of PHP (PHP 5.3 to PHP 7.4), please use version 1.0 instead:, (*5)

composer require crowdstar/reflection:~1.0.0

How To Use It

Three static methods are provided to access protected/private properties and call protected/private methods of an object/class:, (*6)

  • CrowdStar\Reflection\Reflection::getProperty(): Get current value of a property.
  • CrowdStar\Reflection\Reflection::setProperty(): Set a new value to a property.
  • CrowdStar\Reflection\Reflection::callMethod(): Call a method of a class/object.

Here is a sample code showing how to use them:, (*7)


The Versions

26/06 2018

dev-master

9999999-dev https://www.glu.com

Allow to directly access protected/private properties and call protected/private methods.

  Sources   Download

proprietary

The Requires

  • php >=5.3.3

 

The Development Requires

26/06 2018

1.0.0

1.0.0.0 https://www.glu.com

Allow to directly access protected/private properties and call protected/private methods.

  Sources   Download

proprietary

The Requires

  • php >=5.3.3

 

The Development Requires