PHPackages                             phputil/rtti - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. phputil/rtti

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phputil/rtti
============

A Run-Time Type Information extractor, useful for getting/setting private attributes from/to PHP objects.

1.4.1(8y ago)26.3k↓50%2MITPHPPHP &gt;=5.2.0

Since Oct 22Pushed 8y ago3 watchersCompare

[ Source](https://github.com/thiagodp/rtti)[ Packagist](https://packagist.org/packages/phputil/rtti)[ Docs](http://github.com/thiagodp/rtti)[ RSS](/packages/phputil-rtti/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (2)

RTTI
====

[](#rtti)

A Run-Time Type Information extractor, useful for getting or setting private and protected attributes from/to PHP objects.

We use [semantic versioning](http://semver.org/). See [our releases](https://github.com/thiagodp/rtti/releases).

Classes:

- [phputil\\RTTI](https://github.com/thiagodp/rtti/blob/master/lib/RTTI.php)

### Installation

[](#installation)

```
composer require phputil/rtti
```

### Example

[](#example)

Extracting all attributes from a class (even `private` or `protected`).

```
