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

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

iqomp/handler
=============

Data processor of a single model

1.1.1(4y ago)041MITPHP

Since Oct 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/iqomp/handler)[ Packagist](https://packagist.org/packages/iqomp/handler)[ RSS](/packages/iqomp-handler/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (4)Versions (6)Used By (0)

iqomp/handler
=============

[](#iqomphandler)

A class for handling interaction with model, form validation, and formatter. This class make it easy to generate general repetition action.

It call form validation automatically for action `create`, `createMany`, and `set`.

Calling `create`, `get`, and `getOne` will return formatted object if data exists. The returned data is an array for method `get`, and an object for method `create`and `getOne`. Other method will return as returned by model.

Calling method `get` will also generate pagination data.

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

[](#installation)

```
composer require iqomp/handler

```

Usage
-----

[](#usage)

Create a class that extends `Iqomp\Handler\Handler`, and fill some property `model`, `formatter`, and `forms` as below:

```
