Skip to content

Releases: carpediem/JSend

version 2.0.0

07 Sep 13:58
Compare
Choose a tag to compare

Added

  • JSend\Exception as an Exception marker of all the package Exception
  • JSend\JSend::fromJSON to create an object from a JSON string or a JsonSerializable object
  • JSend\JSend::fromArray to replace JSend\JSend::createFromArray

Fixed

  • None

Deprecated

  • None

Removed

  • Remove PHP5 support
  • Relying on PHP SPL Exception
  • JSend::createFromString
  • JSend::createFromArray
  • accessing the constructor you must use one of the named constructors

version 1.2.3

15 Mar 11:43
Compare
Choose a tag to compare

Fixed

  • Bug Fix SPL Exception usage.

version 1.2.2

14 Mar 08:41
Compare
Choose a tag to compare

Fixed

  • The JSend data property can also be a JsonSerializable object
  • When using JSend::withError the JSend status of the return instance is set to error.

version 1.2.1

11 Mar 12:16
Compare
Choose a tag to compare

Fixed

  • Improve property validation
    • empty message error now throw exception
    • a message error can be an object implementing the __toString method
  • Improve HTTP response generation
    • adding the Content-Length header
    • adding overiding possibility for all header

version 1.2.0

09 Mar 09:52
Compare
Choose a tag to compare

Added

version 1.1.0

04 Mar 10:30
Compare
Choose a tag to compare

Added

  • JSend::isSuccess
  • JSend::isFail
  • JSend::isError

1.0.0

03 Mar 13:08
Compare
Choose a tag to compare

First release