PHPackages                             theorx/mapper - 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/mapper

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

theorx/mapper
=============

Mapper is a php library for getting metadata from class.

0.1(11y ago)010PHP

Since Oct 19Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (0)

Mapper
------

[](#mapper)

Mapper is a library for getting metadata from a class.

\#Features#
-----------

[](#features)

- Get metadata for a whole class ( Mapper\\Mapper::getMap($className) )
- Get metadata for a property from given class ( Mapper\\mapper::getPropertyMeta($className, $propertyName) )
- Get metadata for a method from given class ( Mapper\\Mapper::getMethodMeta($className, $methodName) )
- Define your own callback for writing cache ( Mapper\\Mapper::setCacheSaveFunction($saveMethod) )
- Define your own callback for reading cache ( Mapper\\Mapper::setCacheReadFunction($readFunction) )

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

[](#author)

- Lauri Orgla

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

[](#requirements)

- PHP 5.5 with Reflection module
- theorx/reflectionist from packagist.org ( comes automatically with composer )

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

[](#installation)

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

$ ./composer.phar update

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

Usage
-----

[](#usage)

```
