@staabm staabm released this Feb 8, 2018 · 2 commits to master since this release

Assets 2
  • #112: Added a mixedContent deserializer function, which might be useful if you're parsing HTML-like documents with elements that contain both text and other elements as siblings. (@staabm).

@evert evert released this Nov 16, 2016 · 19 commits to master since this release

Assets 2
  • Now requires PHP 7.
  • Uses typehints everywhere.
  • Fixed some minor strict typing-related issues.
  • Removed workaround for PHP bug 64230.

@evert evert released this Oct 9, 2016 · 28 commits to master since this release

Assets 2
  • Now requires PHP 5.5.
  • Using finally to always roll back the context stack when serializing.
  • #94: Fixed an infinite loop condition when reading some invalid XML
    documents.

@evert evert released this Oct 9, 2016 · 50 commits to master since this release

Assets 2
  • The contextStack in the Reader object is now correctly rolled back in
    error conditions (@staabm).
  • repeatingElements deserializer now still parses if a bare element name
    without clark notation was given.
  • $elementMap in the Reader now also supports bare element names.
  • Service::expect() can now also work with bare element names.

@evert evert released this Mar 12, 2016 · 61 commits to master since this release

Assets 2
  • Parsing clark-notation is now cached. This can speed up parsing large
    documents with lots of repeating elements a fair bit. (@icewind1991).

@evert evert released this Mar 12, 2016 · 65 commits to master since this release

Assets 2
  • Any array thrown into the serializer with numeric keys is now simply
    traversed and each individual item is serialized. This fixes an issue
    related to serializing value objects with array children.
  • When serializing value objects, properties that have a null value or an
    empty array are now skipped. We believe this to be the saner default, but
    does constitute a BC break for those depending on this.
  • Serializing array properties in value objects was broken.

@evert evert released this Dec 29, 2015 · 76 commits to master since this release

Assets 2
  • The Service class adds a new mapValueObject method which provides basic
    capabilities to map between ValueObjects and XML.
  • #61: You can now specify serializers for specific classes, allowing you
    separate the object you want to serialize from the serializer. This uses the
    $classMap property which is defined on both the Service and Writer.
  • It's now possible to pass an array of possible root elements to
    Sabre\Xml\Service::expect().
  • Moved some parsing logic to Reader::getDeserializerForElementName(),
    so people with more advanced use-cases can implement their own logic there.
  • #63: When serializing elements using arrays, the value key in the array is
    now optional.
  • #62: Added a keyValue deserializer function. This can be used instead of
    the Element\KeyValue class and is a lot more flexible. (@staabm)
  • Also added an enum deserializer function to replace
    Element\Elements.
  • Using an empty string for a namespace prefix now has the same effect as
    null.

@evert evert released this Dec 29, 2015 · 136 commits to master since this release

Assets 2
  • #53: Added parseGetElements, a function like parseInnerTree, except
    that it always returns an array of elements, or an empty array.

@evert evert released this Jun 29, 2015 · 145 commits to master since this release

Assets 2

@evert evert released this May 26, 2015 · 149 commits to master since this release

Assets 2
  • No functional changes since 0.4.3. Marking it as 1.0.0 as a promise for
    API stability.
  • Using php-cs-fixer for automated CS enforcement.