All notable changes to Jsend
will be documented in this file.
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
- None
- None
- Remove PHP5 support
- Relying on PHP SPL Exception
JSend::createFromString
JSend::createFromArray
- accessing the constructor you must use one of the named constructors
- None
- Bug Fix SPL Exception usage.
- None
- None
- None
- The JSend data property can also be a
JsonSerializable
object - When using
JSend::withError
the JSend status of the return instance is set toerror
.
- None
- None
- None
-
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
- None
- None
JSend::__set_state
JSend::__debugInfo
- None
- None
- None
JSend::isSuccess
JSend::isFail
JSend::isError
- None
- None
- None
First release