Releases: carpediem/JSend
Releases · carpediem/JSend
version 2.0.0
Added
JSend\Exceptionas an Exception marker of all the package ExceptionJSend\JSend::fromJSONto create an object from a JSON string or aJsonSerializableobjectJSend\JSend::fromArrayto replaceJSend\JSend::createFromArray
Fixed
- None
Deprecated
- None
Removed
- Remove PHP5 support
- Relying on PHP SPL Exception
JSend::createFromStringJSend::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
JsonSerializableobject - When using
JSend::withErrorthe 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
__toStringmethod
- Improve HTTP response generation
- adding the
Content-Lengthheader - adding overiding possibility for all header
- adding the
version 1.2.0
Added
JSend::__set_statesee PHP __set_state documentationJSend::__debugInfosee PHP __debugInfo documentation
version 1.1.0
Added
JSend::isSuccessJSend::isFailJSend::isError
1.0.0
First release