PHPackages                             biig/optimus - 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. biig/optimus

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

biig/optimus
============

0.2.3(7y ago)312.1k4[1 issues](https://github.com/biig-io/optimus/issues)MITPHPPHP ^5.6|&gt;=7.0.8CI failing

Since Mar 2Pushed 5y ago7 watchersCompare

[ Source](https://github.com/biig-io/optimus)[ Packagist](https://packagist.org/packages/biig/optimus)[ RSS](/packages/biig-optimus/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

Optimus
=======

[](#optimus)

The goal of the library is to map two arrays (in and out) with an YAML file config.

- ***This library respects [SemVer](https://semver.org/).***

Install
-------

[](#install)

You can install this library using composer with the following command:

```
composer require biig/optimus
```

Usage
-----

[](#usage)

To use this library, you have to create a transformer which needs to extends the `AbstractMappingTransformer` class.

This Transformer will read mapping and apply it to input data.

Basic example
-------------

[](#basic-example)

### Transformer

[](#transformer)

You first have to create your Transformer and implement `transform` method.
Here we use `symfony/yaml ^3.4` to parse a YAML file.

```
