Releases: mvc5/http-message
PHP 8
Final Classes
Classes have been defined as final where applicable.
Namespaced Constants
Namespaced constants are in effect.
Sponsorship
A Github Sponsors funding file has been added.
PHP 7.4 New Features and Improvements
This is for the 12.0 release.
PHP 7.4, laminas-diactoros
Minimum version PHP 7.4. Update to laminas-diactoros.
Authenticated Plugin
A new Authenticated
plugin has been added to return true if the user is authenticated.
Zend Diactoros (2.1) Update
Update to Zend Diactoros 2.1. Removes deprecated function calls and uses parse cookie function.
JSON API
JSON requests and responses are now automatically supported. A request with the application/json content type header is decoded automatically (JIT) into an associative array and assigned to the request as the data attribute. If the route match middleware function returns a HTTP Error, e.g 404 Not Found, it is assigned to the request by the router. The error controller will then return the HTTP Error as a JSON Response when the request accept header is application/json. Similarly, when an exception is thrown, the response\exception function will return a JSON Response containing an empty exception message. Alternatively, in development, the debug configuration parameter can be set to true to include the details of the exception.
Additional changes have been made for better integration with PSR-7 HTTP Messages.
Nullable, Void and Iterable
This is for the 10.0 release.