akrabat/ip-address-middleware
PSR-15 middleware that determines the client IP address and stores it as a ServerRequest attribute
2.6.1
2.8M downloads/mo
#2942 most downloaded on Packagist
akrabat/ip-address-middleware
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 3 weeks to 2.6 years
Some releases are documented
notes for 10 of 17 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
17 releases · first in 2015
0 releases in the last 12 months
see the full history below
Release timeline
17 releases · Oct 2015 to Jan 2025Releases
latest 17-
2.6.118 Jan 2025Release notes
Open source →What's Changed
- Implement hopCount variable in Mezzio's IpAddressFactory by @aiglesiasn in #56
Full Changelog: 2.6.0...2.6.1
-
2.6.011 Jan 2025Release notes
Open source →What's Changed
- Added: Add hop count parameter by @akrabat in #54
- Bug fix: If REMOTE_ADDR is empty or invalid, set ip-address to null by @akrabat in #55
- Maintenance: Update copyright date by @akrabat in #53
Full Changelog: 2.5.0...2.6.0
-
2.5.019 Dec 2024Release notes
Open source →What's Changed
- Trust the first non-trusted-proxy IP address from the right by @akrabat in #51 Thanks @cxlblm for reporting.
Full Changelog: 2.4.0...2.5.0
-
2.4.024 Nov 2024Release notes
Open source → -
2.3.015 Jul 2024Release notes
Open source →What's Changed
- Mezzio installation files by @aiglesiasn in #44
New Contributors
- @aiglesiasn made their first contribution in #44
Full Changelog: 2.2.0...2.3.0
-
2.2.009 Jun 2024Release notes
Open source →What's Changed
- Fix a test class name by @kudashevs in #34
- Update README.md by @kudashevs in #36
- Code-readability improvements by @kudashevs in #37
- Add php 8.2 to php unit test matrix by @pascalheidmann in #39
- Support psr/http-message 2.0 and Diactoros 3.0 by @ElisDN in #42
- Update the run unit tests github action and add PHP 8.3 support by @kudashevs in #40
- Added types to private functions, improved readability, shouldCheckProxyHeaders as separate function by @akrabat in #43
New Contributors
- @kudashevs made their first contribution in #34
- @pascalheidmann made their first contribution in #39
- @ElisDN made their first contribution in #42
Full Changelog: 2.1.0...2.2.0
-
2.1.011 Nov 2021 -
2.0.111 Nov 2021 -
1.0.103 Jul 2018 -
2.007 Dec 2020Release notes
Open source →This release adds support for specifying trusted proxies using CIDR notation or wildcard matching.
It also supports PHP 8, along with 7.4, 7.3 and 7.2.Total issues resolved: 6
- 20: Update README with headersToInspect examples thanks to @akrabat
- 25: Added Laminas example thanks to @GeeH
- 27: Updated dependencies to support PHP 7.3, 7.4 and 8.0, and drops support for PHP 7.0 and 7.1 thanks to @acelaya
- 28: Add CIDR and wildcard matching (rebased version of #21) thanks to @homeyjd & @pmous
- 29: Add .gitattributes to clean up release zip thanks to @akrabat
- 30: Move to GH Actions for CI thanks to @akrabat
-
1.018 Feb 2018Nothing published for this version
-
0.618 Feb 2018Nothing published for this version
-
0.513 Nov 2016Nothing published for this version
-
0.406 Nov 2015Nothing published for this version
-
0.302 Nov 2015Nothing published for this version
-
0.231 Oct 2015Nothing published for this version
-
0.131 Oct 2015Nothing published for this version