All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
2.0.1 - 2020-12-02
- Support for PHP 8
2.0.0 - 2019-12-03
- Support for PHP 7.0 and 7.1
- The
remote
option
- Some return types
1.3.0 - 2019-03-28
- Strip square brackets from server provided IPs, workaround for PHP Bug #76919
1.2.0 - 2019-01-13
- Use
phpstan
as a dev dependency to detect bugs
1.1.0 - 2018-08-04
- PSR-17 support
1.0.2 - 2018-06-28
- Prevent spoofing attacks #11
1.0.1 - 2018-04-28
- Support for
Forwarded
andX-Forwarded
headers, that use a different syntax #9 - Updated testing libraries
1.0.0 - 2018-01-27
- Improved testing and added code coverage reporting
- Added tests for PHP 7.2
- Upgraded to the final version of PSR-15
psr/http-server-middleware
- Updated license year
0.7.0 - 2017-11-13
- Replaced
http-interop/http-middleware
withhttp-interop/http-server-middleware
.
- Removed support for PHP 5.x.
0.6.0 - 2017-09-21
- Append
.dist
suffix to phpcs.xml and phpunit.xml files - Changed the configuration of phpcs and php_cs
- Upgraded phpunit to the latest version and improved its config file
- Updated to
http-interop/http-middleware 0.5
0.5.0 - 2017-07-13
- Resolved bug that would fail to set any IP when proxy headers are enabled and no header matched
0.4.0 - 2017-04-13
- Removed the
headers()
option and replaced byproxy()
that accept two arguments: the ip of the trust proxies and the headers used - The proxy headers have priority over
REMOTE_ADDR
variable, but they are disabled by default
0.3.0 - 2016-12-26
- Updated tests
- Updated to
http-interop/http-middleware 0.4
- Updated
friendsofphp/php-cs-fixer 2.0
0.2.0 - 2016-11-27
- Updated to
http-interop/http-middleware 0.3
First version