PHPackages                             iqomp/formatter - 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. iqomp/formatter

ActiveLibrary

iqomp/formatter
===============

Object formatter and data filler

2.2.0(4y ago)01152MITPHP

Since Dec 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/iqomp/formatter)[ Packagist](https://packagist.org/packages/iqomp/formatter)[ RSS](/packages/iqomp-formatter/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (1)Versions (10)Used By (2)

iqomp/formatter
===============

[](#iqompformatter)

This is a library that format your single or multiple object to suit your needs based on formats config. This is the library that you need before sending your object ( from database ) send to client or view.

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

[](#installation)

```
composer require iqomp/formatter
```

Publishing Config
-----------------

[](#publishing-config)

```
php bin/hyperf.php vendor:publish iqomp/formatter
```

Configuration
-------------

[](#configuration)

You should define one format for each object you save on your database. Please follow this steps to create new object format config.

Add your object formatter config under file `config/autoload/formatter.php` with content as below:

```
