Coder Social home page Coder Social logo

thunderer / serializard Goto Github PK

View Code? Open in Web Editor NEW
26.0 3.0 1.0 80 KB

Flexible serializer encouraging good object design

Home Page: http://kowalczyk.cc

License: MIT License

PHP 99.96% Makefile 0.04%
php yaml xml array json serializer hydrator normalizer parser serialization

serializard's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

renowncoder

serializard's Issues

Ideas

Just a couple of ideas to remember:

  • introduce other formats - TOML, MsgPack, ProtoBuf,
  • DateTimeNormalizer using passed format,
  • do not check whether class or interface exists when registering a handler,
  • think about multiple handlers based on the object state - "normalizer resolvers",
  • hybrid normalizer + hydrator registration for single class, that can maybe share the context?
  • XmlFormat::parse() does not include element attributes,
  • XmlFormat is unable to serialize element attributes,
  • add Context to both directions,
  • add normalization and hydration context with custom information (root object, parent object, maybe Request instance and so on),
  • add setDefault() to normalizer and hydrator containers,
  • allow more than one instance of object in cycle detection like Symfony Serializer does,
  • PublicPropertiesNormalizer (done with GetObjectVarsNormalizer),
  • find a way to set max nesting limit - nesting resolver called instead of current one,
  • split HandlerContainer into separate classes for normalizers and hydrators and remove alias from method adding normalizers (required in XML format),
  • release first version,
  • add DoctrineProxyNormalizer or fallback for class parents,
  • SerializardFacade.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.