uvinum/joiner

Installs: 75 189

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 6

Forks: 1

Open Issues: 0

Type:project

v1.1.3 2018-05-09 13:45 UTC

This package is auto-updated.

Last update: 2024-10-29 04:09:29 UTC


README

Software License Build Status Scrutinizer Code Quality

A powerful library to serialize and append/filter data from your php objects or native php types (arrays, strings, integer...). Ready for production use.

Install

Via Composer

$ composer require uvinum/joiner

Basic Usage

$joiner = new Joiner(new ArraySerializer(new DefaultStrategy()), new ArrayManipulator());

$myObject = new MyObject();
$mySecondObject = new MySecondObject();
$joiner
    ->join($myObject)
    ->append($mySecondObject)
    ->filter('secondObjectFieldName');

$serializedOutput = $joiner->execute();

Follow docs section to read about full capabilities.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.