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.
Added
for new features.Changed
for changes in existing functionality.Deprecated
for soon-to-be removed features.Removed
for now removed features.Fixed
for any bug fixes.Security
in case of vulnerabilities
- Added
PART_*
constants to be used in thegetRequest
method.
- Removed dependency for
php-validator
library.
- Updated vendor libraries.
- Added support for PHP 8.
- Added support for
$_FILES
global with thegetFile
andhasFile
methods.
- Updated vendor libraries.
- Updated vendor libraries.
- Fixed bug in
isHttps
method not detecting https behind a load balancer.
- Renamed methods
getContent
andhasContent
togetBody
andhasBody
respectively, as this more accurately depicts the HTTP request element.
- Added
isCli
method.
- Added support for
CONNECT
,OPTIONS
andTRACE
request methods.
- Added
isJson
andwantsJson
methods.
- Replaced using
$_SERVER['SERVER_NAME']
with$_SERVER['HTTP_HOST']
ingetRequest()
, as this is more accurately associated with the incoming HTTP request.
- Initial release.