Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drinksandco/joiner
A powerful library to serialize and append/filter data from your php objects or native php types (arrays, strings, integer...)
https://github.com/drinksandco/joiner
joiner php serializer
Last synced: 13 days ago
JSON representation
A powerful library to serialize and append/filter data from your php objects or native php types (arrays, strings, integer...)
- Host: GitHub
- URL: https://github.com/drinksandco/joiner
- Owner: drinksandco
- License: mit
- Created: 2017-05-02T21:00:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-09T13:48:56.000Z (over 6 years ago)
- Last Synced: 2024-09-26T02:11:49.976Z (about 2 months ago)
- Topics: joiner, php, serializer
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 6
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Joiner
[![Software License][ico-license]](LICENSE.md)
[![Build Status](https://travis-ci.org/uvinum/joiner.svg?branch=master)](https://travis-ci.org/uvinum/joiner)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/uvinum/joiner/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/uvinum/joiner/?branch=master)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
``` bash
$ composer require uvinum/joiner
```## Basic Usage
``` php
$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](docs/index.md) section to read about full capabilities.
## Testing
``` bash
$ composer test
```## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square