NewYour coding agent can read the release notes before it upgrades.Set up the MCP server โ
Packagist
Packagist, #1515 most downloaded on Packagist
๐ Nette Application: the heart of Nette, a component-based MVC framework. Presenters, components that keep their own state, AJAX snippets, and security built in.
Latest stable
v3.3.1
Last release 16 days ago
05 Nov 2026
Release timing varies
gaps range from 3 weeks to 10 months
Nearly every release is documented
notes for 55 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
83 releases ยท first in 2014
Drag across the ruler to compare, or tap a release to open it.
Backed enums in parameters โ persistent, action, render and signal parameters can now be typed as a backed enum, e.g. renderDefault(Status $status) .
renderDefault(Status $status). The URL carries the case value, link('this', ['status' => Status::Active]) just works, and a value that matches no case is answered with a 404 (nette/nette#1558){control} arguments without a comma โ write {control menu, $items} instead of {control menu $items}, just as {form}, {input} and {label} already expectRequest constants โ Request::FORWARD, RESTORED and VARYING are now Request::Forward, Restored and Varying; the old names keep workingn:nonce โ works with base64url nonces, as produced by common CSP middlewares, and with a nonce at the very start of the Content-Security-Policy header#[Parameter] without a default value โ when the request lacks it, a nullable property gets null and an array one [], the same as an action argument; any other is answered with a 404onShutdown โ handlers receive null as the second argument after a successful request, as their type callable(Application, ?Throwable) promises, and a typo in the error presenter name no longer bypasses the error handling of run()createComponent<Name>() factories work on a component that is not attached to a presenter; a presenter is needed only when the factory carries #[Requires]FileResponse โ sends Content-Range only with a partial 206 response, and a 416 response states the file size, as RFC 9110 requiresFORWARD HTTP method are rejected with a 4xx (thanks to Jakub Richtr), FileResponse strips quotes, backslashes and control characters from the file name in Content-Disposition, and actions that keep calling switch() on each other stop with an exceptioncreateRequest() or requestToUrl() โ the DI container now warns about it in a presenter, since links are generated by LinkGenerator and these methods are never called#[Requires(methods: ...)] on an action or render method can allow a method outside $allowedMethods, isLinkCurrent() does not throw on a target with #[Requires(forward: true)], links to micro routes inside withModule() can be built, and an ambiguous presenter service ends with InvalidPresenterException instead of refreshing the page over and overYour coding agent can read these notes before it upgrades. Set up the MCP server โ
Mostly very old curiosities that few people knew existed โ they still work but now emit a deprecation notice:
Nette Application 3.3 modernizes the foundations: PHP 8.3+ and Latte 3.1, more reliable CSRF protection driven by the browser itself, and a default presenter mapping that finally matches the structure used throughout the documentation. It also clears out a pile of long-forgotten legacy. Please test the RC and report anything that breaks before the stable release.
Sec-Fetch-Site header instead of a SameSite cookie.App\Presentation\*\**PresenterApplication::processRequest() returns a Response instead of sending it itself (#350) โ sending is handled by run(). This enables long-running runtimes (RoadRunner, FrankenPHP) and PSR integration.Presenter::getRequest() throws instead of returning null when the presenter isn't running yetLatteFactory::create() now takes ?Control โ update any custom LatteFactory implementation to the new create(?Control $control = null) signature.{ifCurrent} โ use {if isLinkCurrent('...')}.PresenterComponent and IRouter.Mostly very old curiosities that few people knew existed โ they still work but now emit a deprecation notice:
@annotations โ PHP attributes: @persistent โ #[Persistent], @crossOrigin โ #[Requires(sameOrigin: false)], @deprecated โ #[Deprecated].RouteList โ $router[] = new Route(...) and friends are replaced by $router->addRoute(...) / getRouters().link('Product:detail?id=1') should pass arguments instead: link('Product:detail', ['id' => 1]).Component::getParameter() second $default argument โ use the ?? operator instead.$presenter->view, $layout, $request, $sessionโฆ) โ use the getters.link('Product:detail', ['#' => 'reviews']) produces ...#reviews. The value is URL-encoded, must be scalar, and isn't passed on as a request parameter.Presenter::completeTemplate() โ a protected method extracted from sendTemplate() that you can override to inject shared variables or set the template file before rendering.Nothing published for this version
PHP 8.6 โ Nette Application now installs and runs on it
createComponent<Name>() factories now work on a component that is not attached to a presenter; a presenter is needed only when the factory carries #[Requires]FORWARD HTTP method are now rejected with a 4xx (thanks to Jakub Richtr)FileResponse strips quotes, backslashes and control characters from the file name in Content-DispositionA hardening release. Crafted or malformed request parameters that used to slip through as uncaught 500s now degrade gracefully to 4xx . If your site g
A hardening release. Crafted or malformed request parameters that used to slip through as uncaught 500s now degrade gracefully to 4xx. If your site gets probed by scanners โ and it does โ these three fixes turn a batch of "Server Error" reports into clean Bad Request / Not Found responses.
redirect('this'), forward('this'), isLinkCurrent('this'), typically from a language switcher) while the current URL carries a parameter that doesn't fit the action's typed signature (e.g. ?id=abc for int $id), the framework raised an uncaught InvalidLinkException (HTTP 500). It now reports a proper BadRequestException (4xx) through the new InvalidRequestParameterException. Explicitly passed bad link arguments still throw InvalidLinkException, so genuine programmer mistakes stay visible.?1-foo=bar produced a numeric component id that hit getComponent()'s string type hint and threw a TypeError (HTTP 500). The id is now cast to string and the request is handled gracefully.?do[]=x could crash Tracy's routing panel during development. It now skips non-string presenter/signal/action values instead of throwing.Reverted the experimental hasPresenter()/getPresenterIfExists() addition and the $throw deprecation in Component / Form::getPresenter() โ the previousโฆ
hasPresenter()/getPresenterIfExists() addition and the $throw deprecation in Component/Form::getPresenter() โ the previous API behavior stays unchangedApplication, FileResponse, JsonResponse, RedirectResponse, TextResponse, ForwardResponse and CliRouterPresenterFactory, CallbackResponse and Multiplier are normalized to Closure for stronger typingLinkGenerator: throws an error when the link points to #[Requires(forward: true)]
LinkGenerator: do not pass defaults of #[Parameter]
Latte: added filter |absoluteUrl and {linkBase}
|absoluteUrl and {linkBase}LatteExtension: added option 'locale'
ApplicationExtension: checks the correct usage of attributes
Component::tryCall() throws BadRequestExceptionMultiplier::createComponent() allow to return a null (#327)Nothing published for this version
added attributes #[Requires] and #[Deprecated]
#[Requires] and #[Deprecated]switch()**ComponentReflection::getActionRenderMethod() & getSignalMethod()LatteFactory::create()Application::$catchExceptions is silently deprecated
Control, Presenter::createTemplate() has argument
changes:
Presenter::createTemplate() has argumentComponent::tryCall() throws BadRequestException
Component::tryCall() throws BadRequestExceptionApplication: previous presenter is passed to error presenter
ComponentReflection::convertType() supports true & falsePresenter::findLayoutTemplateFile()LatteExtension: added options strictParsing & phpLinter
RoutingPanel: URL & link to presenter moved to the top
<script>Presenter: fixed InvalidLinkException on detectedCsrf() #300
detectedCsrf() #300Control::templatePrepareFilters() silently deprecated
Control::templatePrepareFilters() silently deprecatedComponent::getParameter() $default is silently deprecatedTranslatorExtension moved to Latte (BC break)
{_var} and {translate} can translate values during compile time
withPath() fix II.ApplicationExtension: support for creating presenters via Tracy
Component::link() & etc uses variadic parameter" #298Presenter: support for @deprecated in presenters, action & signals
Presenter::run() saves global state on sendRequest()Presenter::canonicalize() uses variadicsComponent::link() & etc uses variadic parameterUIMacros: supports {control |noescape}
{control |noescape}Presenter: try to find Template file for each action
formatTemplateClass() refactoringcreateRequest() #262Form::disableSameSiteProtection() replaced with allowCrossOrigin()LatteExtension: option 'xhtml' is deprecated
createComponent() warns on non-presenter components nette/forms#147createTemplate() returns Nette\Bridges\ApplicationLatte (BC break)For the details you can have a look at the diff.
UIMacros: modifiers are deprecated in {control}
{control x: 1}PresenterFactory: removed case mismatch checks because may work incorrectly
disableSameSiteProtection() replaced with allowCrossOrigin()For the details you can have a look at the diff.
added PHP 8 attributes #[Persistent] & [CrossOrigin]#
#[Persistent] & [CrossOrigin]#For the details you can have a look at the diff.
Application: Micro:* presenter are not achievable
getModule() #264withReferenceUrl()For the details you can have a look at the diff.
UIMacros: fixed (expand) in {control) nette/latte#223
For the details you can have a look at the diff.
Presenter::restoreRequest() redirects on GET request
restoreRequest() redirects on GET requestisLinkCurrent() and isModuleCurrent()isModuleCurrent() #240 (#243)For the details you can have a look at the diff.
Template: added addFunction() for Latte 2.6
addFunction() for Latte 2.6injectPrimary() params are required because $httpRequest is required. (#239)For the details you can have a look at the diff.
Component, Form: deprecated hasPresenter()
disableSameSiteProtection()getPresenterIfExists()hasPresenter()__toString() is allowed since PHP 7.4For the details you can have a look at the diff.
Presenter: added onRender event
redirect() removed $code from signature #220 #221withoutUserInfo() (nette/http#160)For the details you can have a look at the diff.
Component, Form: added hasPresenter(), deprecated $throw in getPresenter()
nette.presenter replaced by findByType()PresenterFactory: removed case mismatch checks because may work incorrectly
For the details you can have a look at the diff.
Nothing published for this version
class aliases are loaded on demand
For the details you can have a look at the diff.
composer: requires nette/utils < 3 #210
match()For the details you can have a look at the diff.
RoutingPanel: removed inline style to work with CSP
For the details you can have a look at the diff.
TemplateFactory: retrieve CSP nonce from CSP-Report-Only header as a fallback
error() moved to ComponentFor the details you can have a look at the diff.
added Request::VARYING for request that must not be canonicalized via 301
For the details you can have a look at the diff.
FileResponse: strict type fix for PHP 5.2
renderToString()For the details you can have a look at the diff.
Route: converts all scalar params to strings #185
saveState() fixed compatibility with PHP 7.2For the details you can have a look at the diff.
For the details you can have a look at the diff.
For the details you can have a look at the diff.
coding style: fixes, lowercase true/false/null
requestToUrl(), taken out from createRequest()For the details you can have a look at the diff.
RoutingExtension: added support for custom single-route classes.
canonicalize() allows to redirect to specified destinationFor the details you can have a look at the diff.
TemplateFactory: "nonce" is Presenter agnostic
getHttpCode()combineArgs() throws InvalidArgumentException instead BadRequestException when incompatible type is object"For the details you can have a look at the diff.
compatibility with nette/di and RobotLoader 3.0
For the details you can have a look at the diff.
TemplateFactory: added support for custom Template implementation #159 #141
constructUrl(): split of module and presenter moved before global filter (#167)constructUrl() fixed global filter on presenter name (#161)createInitialRequest() failed, thx to @vlastavesely #163addFilter() returns $thisFor the details you can have a look at the diff.
UI: added support for PHP 7.1 nullable types
combineArgs() throws InvalidArgumentException instead BadRequestException when incompatible type is objectstrpos(): Offset not contained in string" (#154)For the details you can have a look at the diff.
SnippetBridge: added setSnippetMode; added snippet test
For the details you can have a look at the diff.
Router::$defaultFlags and flag SECURED are deprecated nette/routing#13
<module>]warmupCache()redirectPermanent()deprecated, changed:
argsToParams() and saveState() now distinguish between NULL and FALSE #107convertType() objects can be passed only to parameters without array or scalar type (without array / scalar default value) (BC break)validateControl() & invalidateControl(), Presenter::backlink() and Template::registerHelper() trigger E_USER_DEPRECATEDterminate()For the details you can have a look at the diff.
Nothing published for this version
Route: Added variable for domain second level name (%sld%)
For the details you can have a look at the diff.
PresenterFactory: added possibility to configure mapping via array; thanks @achse #101 #119
warmupCache()For the details you can have a look at the diff.
Route: support for optional [ ]
<module>]combineArgs() throws exception when parameter has scalar type hint, no default value and argument is missingconvertType() NULLs are not allowedFor the details you can have a look at the diff.
One column per quarter.