2017 © Pedro Peláez
 

library serializer

image

scato/serializer

  • Thursday, June 29, 2017
  • by scato
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Serializer

Latest Version on Packagist ![Software License][ico-license] Build Status, (*1)

An alternative serializer that minimizes configuration, and is focused on DTOs instead of Entities., (*2)

Install

Via Composer, (*3)

``` bash $ composer require scato/serializer, (*4)


## Usage ``` php $serializer = SerializerFacade::create(); $string = $serializer->serialize(..., 'json');

Read the docs for more examples on how to use the serializer, or jump to Advanced Usage to learn about custom type handling and custom factories., (*5)

Change log

Please see CHANGELOG for more information on what has changed recently., (*6)

Testing

``` bash $ composer test, (*7)


## Contributing Please see [CONTRIBUTING](CONTRIBUTING.md) for details. ## Known issues Composite types are not supported. If your type reads `array|Foo[]` or `string|null`, you're out of luck. Deserialization does not support polymorphism. If a type says `Foo`, an object will never be deserialized as a subclass of `Foo`. The reason for this is that DocBlocks have no way to define discriminators. (Maybe we could use the `@uses` tag to point to a property with a default value, so the property/value-pair can be used as a discriminator.) No caching is performed, which makes deserialization relatively slow. There is a problem with the `phpdocumentor/reflection-common` component, so you have to add it to your own `composer.json`: ``` json "require": { "phpdocumentor/reflection-common": "^1.0@dev" }

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

25/06 2015

dev-feature/jms-bridge

dev-feature/jms-bridge

  Sources   Download

The Requires

 

The Development Requires

19/06 2015

dev-feature/map-entity-to-dto

dev-feature/map-entity-to-dto

  Sources   Download

The Requires

 

The Development Requires