nette/http
Nette HTTP provides a clean, lightweight HTTP layer for PHP apps. It handles requests, responses, headers, cookies, sessions, and URL utilities with a consistent API, making it easy to build frameworks, middleware, or standalone services.
resolve()isAbsolute() & removeDotSegments()build() methodUrl::canonicalize() char " does not need to be encodedFileUpload::__construct() accepts pathFileUpload::getSanitizedName() changes the extension only for image files #239getSuggestedExtension()Session::getSectionNames(), replacement for getIterator()BC break:
$httpRequest->getUrl()->getUser() + getPassword()
// changed to
[$user, $pass] = $httpRequest->getBasicCredentials();
New features:
Deprecations:
Request::getReferer() is deprecated #210Request::getOrigin()autoStart() to prevent session files from being created when the session id is spoofedremove() is not writing operationset(), get(), remove()clean()set(), get(), remove()clean()destroy() (#204)destroy() (#204)sendAsFile()__get() returns reference (#191)(#192)For the details you can have a look at the diff.
nette-samesite renamed to _nsscompatible with PHP 8.0
getImageFileExtension()getUntrustedName() as alias for getName()getimagesize() returns false (#184)initCookie() sends cookie nette-samesite only if doesn't existFor the details you can have a look at the diff.
parseQuery() fixed parsing of ; #177For the details you can have a look at the diff.
parseQuery() accepts separator ;For the details you can have a look at the diff.
withoutUserInfo()For the details you can have a look at the diff.
session_status() for better cooperation with the session started outside nette nette/forms#214[] in REMOTE_ADDR #152escapeHtml()For the details you can have a look at the diff.
For the details you can have a look at the diff.
setCookie() supports SameSiteremoveDuplicateCookies() #139For the details you can have a look at the diff.
For the details you can have a look at the diff.
session_set_cookie_params() when values was not changed #134 #23For the details you can have a look at the diff.
each() deprecation notice in PHP 7.2For the details you can have a look at the diff.
For the details you can have a look at the diff.
How can I help you explore Laravel packages today?