2017 © Pedro Peláez
 

library object-intruder

A small library to access private/protected properties/methods of objects

image

duncan3dc/object-intruder

A small library to access private/protected properties/methods of objects

  • Friday, June 1, 2018
  • by duncan3dc
  • Repository
  • 1 Watchers
  • 3 Stars
  • 39,653 Installations
  • PHP
  • 18 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 12 % Grown

The README.md

object-intruder

A small PHP library to access private/protected properties/methods of objects, (*1)

release build coverage, (*2)

Installation

The recommended method of installing this library is via Composer., (*3)

Run the following command from your project root:, (*4)

$ composer require duncan3dc/object-intruder

Usage

use duncan3dc\ObjectIntruder\Intruder;

$table = new Intruder(new Table);
$table->secretMethodNotPublic("Hello", "World");
$table->privateStuff = "modified";

Unfortunatly due to a limitation of __call methods with parameters passed by reference are not supported. However there is a workaround available using the _call() method:, (*5)

$stuff = "start";

$table = new Intruder(new Table);
$table->_call("secretMethod", $stuff, Table::MODIFY);

Changelog

A Changelog has been available since the beginning of time, (*6)

Where to get help

Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter, (*7)

The Versions

01/06 2018

dev-master

9999999-dev https://github.com/duncan3dc/object-intruder

A small library to access private/protected properties/methods of objects

  Sources   Download

Apache-2.0

The Requires

  • php ^5.6|^7.0

 

The Development Requires

reflection private protected public

07/07 2017

0.3.0

0.3.0.0 https://github.com/duncan3dc/object-intruder

A small library to access private/protected properties/methods of objects

  Sources   Download

Apache-2.0

The Requires

  • php ^5.6|^7.0

 

The Development Requires

reflection private protected public

27/06 2017

0.2.0

0.2.0.0 https://github.com/duncan3dc/object-intruder

A small library to access private/protected properties/methods of objects

  Sources   Download

Apache-2.0

The Requires

  • php ^5.6|^7.0

 

The Development Requires

reflection private protected public

30/10 2016

0.1.0

0.1.0.0 https://github.com/duncan3dc/object-intruder

A small library to access private/protected properties/methods of objects

  Sources   Download

Apache-2.0

The Requires

  • php ^5.6|^7.0

 

The Development Requires

reflection private protected public