2.0.0

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

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

Downloads

1.5.0

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

  • 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.

Downloads

1.4.2

@evert evert released this May 19, 2016 · 33 commits to master since this release

  • 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.

Downloads

1.4.1

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

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

Downloads

1.4.0

@evert evert released this Feb 14, 2016 · 48 commits to master since this release

  • 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.

Downloads

1.3.0

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

  • 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.

Downloads

1.2.0

@evert evert released this Aug 30, 2015 · 119 commits to master since this release

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

Downloads

1.1.0

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

Downloads

1.0.0

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

  • 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.

Downloads

Pre-release

0.4.3

@evert evert released this Apr 1, 2015 · 137 commits to master since this release

  • Minor tweaks for the public release.

Downloads