Download the PHP package addequatte/json-serializer without Composer
On this page you can find all versions of the php package addequatte/json-serializer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download addequatte/json-serializer
More information about addequatte/json-serializer
Files in addequatte/json-serializer
Download addequatte/json-serializer
More information about addequatte/json-serializer
Files in addequatte/json-serializer
Vendor addequatte
Package json-serializer
Short Description Simply JsonSerializable interface realization to convert models to json
License MIT
Package json-serializer
Short Description Simply JsonSerializable interface realization to convert models to json
License MIT
Please rate this library. Is it a good library?
Informations about the package json-serializer
Simply JsonSerializable interface realization to convert models to json
Features
- Convert children models to json.
- Hide fields you want.
- Process result field
Installation
For example
Result for first case
Result for second case
- you can get all properties your models having getter
- How you can see it is pretty simple to use, just extend your model using Addequatte\JsonSerializer\Model\JsonSerializable.
- If you want to hide some fields you can use setHiddenFields(array $hiddenFields): void method
- You can hide fields from children model easily just using $jsonSerializeHandler->addHiddenFields(Author::class, ['gender'])
- You can change model fields easily just using $processor->addClosure(Author::class,'birthDate', function ($value) { return $value->format('d.m.Y H:i:s'); })
- You can write your own processor implement ProcessorInterface
All versions of json-serializer with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0.0
The package addequatte/json-serializer contains the following files
Loading the files please wait ....