I am refactoring my application using PSR-7 Requests using Slim3 as Router. On some of my entry points I have incoming GET and POST HTTP-Requests from external applications. Both GET and POST use the same parameter names. In the old code, a simple
$parameters = $request->getQueryParams();
$parameters = $request->getParsedBody();
Slim's request object has
getParams() which does what you want. These are not part of PSR-7 though.