php-serializer

Serialize any object into array and bind any data structure to an object/array; Can (de)serialize into JSON or XML.

MIT License

Downloads
111.9K
Stars
4
php-serializer - 4.9.2 Latest Release

Published by byjg 5 months ago

What's Changed

Full Changelog: https://github.com/byjg/php-serializer/compare/4.9.1...4.9.2

php-serializer - Release 4.9.1

Published by byjg 10 months ago

Add CamelToSnakeCase and SnakeToCamelCase property patterns

What's Changed

Full Changelog: https://github.com/byjg/php-serializer/compare/4.9.0...4.9.1

php-serializer - Release 4.9.0

Published by byjg over 1 year ago

What's Changed

New Class/Method Status More Info
BindableInterface New
BindableObject New split of BinderObject
DumpToArrayInterface Removed
SerializerObject::instance() New
SerializerObject::serialize() Renamed from SerializerObject::build()
BinderObject::bind() Renamed from BinderObject::bindObject()
SerializerObject::serialize() Replace replace BinderObject::toArrayFrom()
SerializerObject::serializeProperties() Renamed and change to private from SerializerObject::buildProperty()
SerializerObject::serializeArray() Renamed and change to private from SerializerObject::buildArray()
SerializerObject::serializeStdClass() Renamed and change to private from SerializerObject::buildStdClass()
SerializerObject::serializeObject() Renamed and change to private from SerializerObject::buildObject()
SerializerObject getter and setter Renamed All getters and setters

Plus:

  • Formatter supported only arrays, now support any kind of object
  • Added some customization properties for the Formatters

Full Changelog: https://github.com/byjg/serializer/compare/1.0.7...4.9.0

php-serializer - Release 1.0.7

Published by byjg over 6 years ago

Changed the Generic Exception to InvalidArgumentException

php-serializer - Release 1.0.6

Published by byjg over 6 years ago

Removed Backward compatibility PHPUnit

php-serializer - Release 1.0.5

Published by byjg about 7 years ago

  • Added setBuildNull(boolean)
php-serializer - Release 1.0.4

Published by byjg over 7 years ago

  • Explicit remove bindTo($array)
  • Added the ProperyPattern
  • Added the ProperyPattern to method toArrayFro
  • Fix serializer to get the value from the getter method instead the value of the private/protected property
php-serializer - Release 1.0.3

Published by byjg over 7 years ago

Added the method Serializer::setDoNotParse to avoid serialize some classes

php-serializer - Release 1.0.2

Published by byjg over 7 years ago

Added PlainTextFormatter

php-serializer - Release 1.0.1

Published by byjg over 8 years ago

Some minor adjusts

php-serializer - Release 1.0.0

Published by byjg over 8 years ago

First release extracted from "byjg/anydataset" project.