2017 © Pedro Peláez
 

library reflection-properties-serializer

Reflection Properties Serializer

image

monii/reflection-properties-serializer

Reflection Properties Serializer

  • Friday, December 11, 2015
  • by simensen
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,751 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Reflection Properties Serializer

A simple serializer that is completely controlled by PSR-5 @var typehints., (*1)

Latest Stable Version Total Downloads Latest Unstable Version License
Build Status, (*2)

Requirements

  • PHP 5.5+

Installation

$> composer require monii/reflection-properties-serializer

Until a stable version has been released or if a development version is preferred, use:, (*3)

$> composer require monii/reflection-properties-serializer:@dev

Goals and Target Use Cases

The goal of this package is to provide a simple strategy for serializing simple value objects that contain primitives and other value objects., (*4)

The target use case for this project is serializing and deserializing commands and events comprised of simple value objects., (*5)

We wanted to minimize the amount of configuration and work that needs to be done to serialize and deserialize events and commands in environments where these are simple immutable value objects., (*6)

It was our hope we could do this entirely with @var typehints and we are going to see how far this takes us before falling back on heavier solutions like Symfony Serializer or JMS Serializer., (*7)

Limitations

This package is intentionally simple and strives to use as few dependencies as possible. This means that there are some limitations that we are going to accept until we find a reason to address them., (*8)

  • All properties need to be typehinted using PSR-5 @var syntax.
  • We make a best guesss effort to support the right implementation of multiple @var types are listed.
  • We cannot deserialize objects from different types to the same property (meaning interfaces-only @var typehints are going to give you a hard time).

License

MIT, see LICENSE., (*9)

Community

Want to get involved? Here are a few ways:, (*10)

  • Find us in the #monii IRC channel on irc.freenode.org.
  • Mention @moniidev on Twitter.

The Versions

11/12 2015

dev-Remove-SubSerializer-and-SubDeserializer

dev-Remove-SubSerializer-and-SubDeserializer

Reflection Properties Serializer

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by monii.io
by Steve Marks
by Alec Charlton

serializer reflection properties

02/09 2015

dev-master

9999999-dev

Reflection Properties Serializer

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by monii.io
by Steve Marks
by Alec Charlton

serializer reflection properties