ip-address-middleware icon indicating copy to clipboard operation
ip-address-middleware copied to clipboard

PSR-7 Middleware that determines the client IP address and stores it as an ServerRequest attribute

Results 3 ip-address-middleware issues
Sort by recently updated
recently updated
newest added

``` public function __invoke(ServerRequestInterface $request, ResponseInterface $response, $next)` { if (!$next) { return $response; } $ipAddress = $this->determineClientIpAddress($request); $request = $request->withAttribute($this->attributeName, $ipAddress); return $response = $next($request, $response); } ``` I...

Hello again, This PR updates the run unit tests github action and adds support of the PHP 8.3 version. P.S. to make this file even more consistent with [other projects](https://github.com/slimphp/Slim/blob/4.x/.github/workflows/tests.yml)...

Hello, I am proposing some minor improvements/changes - added argument and return types to private functions parseWildcard, parseCidr, getFirstIpAddressFromHeader - improved isValidIpAddress function readability - moved determining whether proxy headers...