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: 9 months 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-09T13:48:56.000Z (about 8 years ago)
- Last Synced: 2025-03-26T11:02:29.653Z (over 1 year ago)
- Topics: joiner, php, serializer
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 6
- Watchers: 5
- 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)
[](https://travis-ci.org/uvinum/joiner)
[](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