Releases: carpediem/JSend
Releases · carpediem/JSend
version 2.0.0
Added
JSend\Exception
as an Exception marker of all the package ExceptionJSend\JSend::fromJSON
to create an object from a JSON string or aJsonSerializable
objectJSend\JSend::fromArray
to replaceJSend\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
Fixed
- Bug Fix SPL Exception usage.
version 1.2.2
Fixed
- The JSend data property can also be a
JsonSerializable
object - When using
JSend::withError
the JSend status of the return instance is set toerror
.
version 1.2.1
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
- adding the
version 1.2.0
Added
JSend::__set_state
see PHP __set_state documentationJSend::__debugInfo
see PHP __debugInfo documentation
version 1.1.0
Added
JSend::isSuccess
JSend::isFail
JSend::isError
1.0.0
First release