CakePHP integration
Since CakePHP supports PSR-7 (since v3.6) and uses Zend Diactoros, you can follow the example shown for PSR-7 integration.
If you want a more advanced integration which included a middleware checkout the ADmad/cakephp-glide plugin.