obokaman-com / joiner

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Joiner

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.

About

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

License:MIT License


Languages

Language:PHP 100.0%