PHPackages                             dhenfie/accessible - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. dhenfie/accessible

ActiveLibrary[Testing &amp; Quality](/categories/testing)

dhenfie/accessible
==================

1.2.0(2y ago)1151MITPHPPHP ^8.0

Since Sep 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dhenfie/accessible)[ Packagist](https://packagist.org/packages/dhenfie/accessible)[ RSS](/packages/dhenfie-accessible/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (1)

### About

[](#about)

A simple utility that allows accessing private methods and private properties outside of the class.

### Install

[](#install)

Install via composer.

```
composer require dhenfie/accessible
```

### Usage

[](#usage)

Use the `accessible($targetObject)` function to introspect the target object, and after that, you can access private methods as if they were public methods.

Example:

```
