uvinum / joiner
Installs: 75 189
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 6
Forks: 1
Open Issues: 0
Type:project
Requires
- php: >=5.6
- league/pipeline: ^0.3.0
Requires (Dev)
- phpunit/phpunit: ~4.7
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
- symfony/var-dumper: ~3.0
README
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.