PHPackages                             theorx/reflectionist - 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. theorx/reflectionist

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

theorx/reflectionist
====================

Class analyzer for php 5.5

0311PHP

Since Oct 18Pushed 11y ago1 watchersCompare

[ Source](https://github.com/theorx/Reflectionist)[ Packagist](https://packagist.org/packages/theorx/reflectionist)[ RSS](/packages/theorx-reflectionist/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (1)

Reflectionist
-------------

[](#reflectionist)

Reflectionist is a library for class analysis, with this library it is possible to get meta info about given class and use it to create any kind of custom documentation / automation from php docblock annotations (i.e @keyword ). Also gives information about class type hints inside class methods.

This library is based on Reflection classes so no internal tokenizer is used. We advise you to use this class with caching. At the moment this library does not support caching out of box.

\#Author#
---------

[](#author)

- Lauri Orgla

\#Requirements#
---------------

[](#requirements)

Reflectionist requires PHP 5.5 ( other versions not tested yet ) with Reflection module.

Installation
------------

[](#installation)

```
$ git clone https://github.com/theorx/Reflectionist.git

$ ./composer.phar update

$ ./composer.phar dump-autoload -o
```

Usage
-----

[](#usage)

```
require(__DIR__.'/vendor/autoload.php');

$analyzer = new Reflectionist\Analyzer();

$result = $analyzer->addClass('vendor\ns\subns\class')->analyze()->getResults();
```

Example input
-------------

[](#example-input)

```
