PHPackages                             brightmachine/rapper - 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. brightmachine/rapper

Abandoned → [brightmachine/object-proxy](/?search=brightmachine%2Fobject-proxy)Library[Utility &amp; Helpers](/categories/utility)

brightmachine/rapper
====================

A trait to simplify the creation of proxies or simple facades.

1.0.0(11y ago)139MITPHPPHP &gt;=5.4

Since Apr 24Pushed 11y ago2 watchersCompare

[ Source](https://github.com/brightmachine/object-proxy)[ Packagist](https://packagist.org/packages/brightmachine/rapper)[ Docs](https://github.com/brightmachine/object-proxy)[ RSS](/packages/brightmachine-rapper/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Rapper
======

[](#rapper)

What is Rapper?
---------------

[](#what-is-rapper)

This trait can help with writing facades where you want some methods to forward on to a target object or to create a proxy class, for example if you don't want to reference vendor code from within your domain.

Requirements
------------

[](#requirements)

- PHP 5.4+

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

[](#installation)

Install composer in your project:

```
curl -s http://getcomposer.org/installer | php

```

Create a `composer.json` file in your project root:

```
{
    "require": {
        "brightmachine/rapper": "*"
    }
}
```

Install via composer:

```
php composer.phar install

```

License
-------

[](#license)

Rapper is open-sourced software licensed under the MIT License - see the LICENSE file for details

Documentation
-------------

[](#documentation)

Currently this trait allows you to do the following:

1. set the target object for proxying to
2. define a map of different function names to use

Example:

```
