2017 © Pedro Peláez
 

library serializer

Object (de)serializer component for PHP

image

tsantos/serializer

Object (de)serializer component for PHP

  • Thursday, July 5, 2018
  • by tsantos84
  • Repository
  • 3 Watchers
  • 7 Stars
  • 881 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 10 Versions
  • 107 % Grown

The README.md

TSantos Serializer

Build Status Quality Gate Status Coverage Latest Stable Version Total Downloads Latest Unstable Version License composer.lock available, (*1)

TSantos Serializer is a library to encode/decode PHP objects to some string representation. Because of its exclusive serialization strategy, this library is the faster serialization component to PHP., (*2)

Instalation

You can install this library through composer:, (*3)

composer require tsantos/serializer, (*4)

or just add tsantos/serializer to your composer file and then, (*5)

composer update, (*6)

Usage

The best way to get start with TSantos Serializer is by using the builder. With a few configurations you are ready to serialize your data:, (*7)


use TSantos\Serializer\SerializerBuilder; class Post { public $title; public $summary; } $serializer = (new SerializerBuilder()) ->setHydratorDir('/path/to/generated/hydrators') ->build(); $person = new Post('Post title', 'Post summary'); echo $serializer->serialize($person); // {"title":"Post title", "summary":"Post summary"}

This is the simplest example to get you started with TSantos Serializer. There are a lot of capabilities which you should know in order to master your serializer instance and take advantage of all library's power., (*8)

Features

Main features currently supported by TSantos Serializer:, (*9)

  • No need to mapping classes for simple use cases ...
  • ... but supports YAML, XML and Annotations mapping formats for advanced mapping
  • Supports JSON encoders
  • (De-)serializes objects of any depth
  • Virtual properties
  • Properties grouping
  • Event listeners to hook into serialization operations
  • (De-)serializes interfaces and abstract classes

Documentation

Please refer to the documentation page to see all allowed configurations., (*10)

Licence

MIT, (*11)

Tests

vendor/bin/phpunit -c phpunit.xml.dist, (*12)

The Versions

20/05 2018

dev-develop

dev-develop

Object (de)serializer component for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tales Santos

serializer metadata data-transformation

27/04 2018

2.1.0

2.1.0.0

Object (de)serializer component for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tales Santos

serializer metadata data-transformation

23/12 2017

2.0.0

2.0.0.0

Object (de)serializer component for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tales Santos

serializer metadata data-transformation

29/11 2017

dev-release/1.2.x

dev-release/1.2.x

Object (de)serializer component for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tales Santos

serializer metadata data-transformation

24/11 2017

1.1.1

1.1.1.0

Object (de)serializer component for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tales Santos

serializer metadata data-transformation

23/11 2017

1.1.0

1.1.0.0

Object (de)serializer component for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tales Santos

serializer metadata data-transformation

21/11 2017

1.0.0

1.0.0.0

Object (de)serializer component for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tales Santos

serializer metadata data-transformation

27/06 2017

dev-docs

dev-docs

Serializer component for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tales Santos

serializer metadata