PackageTrack
Sign in Get early access

nette/security

🔑 Nette Security: provides authentication, authorization and a role-based access control management via ACL (Access Control List)

v3.2.6 9.9M downloads/mo #2326 most downloaded on Packagist nette/security

What this package is like to depend on

Last release 1 months ago

24 Jul 2026

Release timing varies

gaps range from 2 weeks to 13 months

Some releases are documented

notes for 9 of 34 stable releases

Nothing withdrawn

no release was ever pulled

12 years old

34 releases · first in 2014

4 releases in the last 12 months

see the full history below

Release timeline

33 releases · Jun 2014 to Jul 2026
2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 34
  1. v3.2.6 24 Jul 2026
    Release notes

    ✨ New Features

    • Hashed passwords in SimpleAuthenticator – stored passwords may now be crypt-format hashes (anything password_hash() produces) and can be freely mixed with plain-text ones. The format is detected automatically, so hashes just work in the security: users: config section with no extra option. A hash whose algorithm the PHP build doesn't know fails closed instead of being compared as plain text, and plain-text comparison is timing-safe.
    • Passwords::bcrypt() and Passwords::argon2id() – name the algorithm instead of juggling PASSWORD_* constants and options arrays: Passwords::bcrypt(12) or Passwords::argon2id(memoryCost: 65536). Omitted parameters keep PHP's defaults, and argon2id() fails with a clear exception on builds without Argon2 support.
    • ACL rules in the configuration – the new rules section lets you define permissions declaratively next to your roles and resources:
      security:
          rules:
              allow:
                  - [guest, article, view]
                  - [registered, comment, [add, edit]]
                  - [admin]
              deny:
                  - [banned, comment, add]
      Each rule is [role(s), resource(s), privilege(s)]; an omitted or null item means "all", and a bare string grants or revokes everything for that role. Malformed rules are rejected at config time, not at runtime.

    🐛 Bug Fixes

    • logout() no longer touches the storage when there is nothing to change, so logging out a guest doesn't needlessly regenerate the session ID or overwrite the logout reason. A stored authentication vetoed by wakeupIdentity() (a revoked token, say) is still properly cleared.
    • Permission::isAllowed() now saves and restores the queried role and resource, making it re-entrant and exception-safe – an assertion callback can call isAllowed() again without corrupting the results of the outer query.
    Open source →
  2. v3.2.5 15 Jun 2026
    Release notes
    • fixed compatibility with nette/http 3.4
    • Identity: use ctype_digit for stricter numeric ID detection
    Open source →
  3. v3.2.4 23 May 2026
    Release notes
    • Guest identity – an IdentityHandler authenticator may now implement getGuestIdentity(): ?IIdentity to hand anonymous visitors a real identity. When present, getIdentity(), getId() and getRoles() transparently fall back to it, so guests carry their own roles and data instead of just the $guestRole string. The guest identity is resolved on read only and never written to storage.

    • $persistIdentity – the new User::$persistIdentity property lets you decide what happens to the identity after logout or expiration. It stays available for personalization by default; flip it to false and getIdentity()/getId() return null once the user is no longer logged in. Configurable straight from the security.authentication DI section.

    • SessionStorage no longer refreshes the sliding expiration timestamp once the session has already expired – an expired identity stays expired instead of being silently kept alive for another round

    • Adopted nette/phpstan-rules and made static analysis a mandatory part of the build, then resolved the errors it surfaced

    • Improved phpDoc types and descriptions across the codebase

    Open source →
  4. v3.2.3 11 May 2026

    Nothing published for this version

  5. v3.2.2 01 Aug 2025
    Release notes
    • support for PHP 8.5
    • optimized global function calls
    Open source →
  6. v3.2.1 04 Nov 2024
    Release notes
    • support for PHP 8.4
    • SecurityExtension: password can be dynamic #74
    • $user => $username #73
    Open source →
  7. v3.2.0 21 Jan 2024
    Release notes
    • requires PHP 8.1
    • uses PHP 8.1 features
    • removed deprecated IUserStorage (BC break)
    Open source →
  8. v3.1.8 18 Oct 2023
    Release notes
    • support for PHP 8.3
    • constants are PascalCase
    • used #[\SensitiveParameter] to mark sensitive parameters
    Open source →
  9. v3.1.7 18 Jan 2023
    Release notes
    • composer: allows nette/utils 4.0
    Open source →
  10. v3.1.6 12 Oct 2022
    Release notes
    • CookieStorage: getState returns the previously set ID #67
    • CookieStorage: fixed SameSite attribute
    • SessionStorage::setExpiration() does not overwrite data in the session
    • SimpleAuthenticator: refactoring, added verifyPassword()
    • strict type fix
    • coding style
    Open source →
  11. v3.1.5 20 Sep 2021

    Nothing published for this version

  12. v3.1.4 25 Aug 2021

    Nothing published for this version

  13. v3.1.3 18 Jan 2021

    Nothing published for this version

  14. v3.1.2 05 Jan 2021

    Nothing published for this version

  15. v3.1.0 no date

    Nothing published for this version

  16. v3.0.6 25 Aug 2021

    Nothing published for this version

  17. v3.0.5 02 Nov 2020

    Nothing published for this version

  18. v3.0.4 27 May 2020

    Nothing published for this version

  19. v3.0.3 13 Jan 2020

    Nothing published for this version

  20. v3.0.2 16 Oct 2019

    Nothing published for this version

  21. v3.0.1 14 Apr 2019

    Nothing published for this version

  22. v2.4.4 17 Oct 2018

    Nothing published for this version

  23. v2.4.3 02 Apr 2018

    Nothing published for this version

  24. v2.4.2 11 Jul 2017

    Nothing published for this version

  25. v2.4.1 19 Dec 2016

    Nothing published for this version

  26. v2.4.0 17 May 2016

    Nothing published for this version

  27. v2.3.2 17 May 2016

    Nothing published for this version

  28. v2.3.1 11 Jul 2015

    Nothing published for this version

  29. v2.3.0 24 Feb 2015

    Nothing published for this version

  30. v2.2.4 19 Jul 2015

    Nothing published for this version

  31. v2.2.3 20 Feb 2015

    Nothing published for this version

  32. v2.2.2 14 Dec 2014

    Nothing published for this version

  33. v2.2.1 05 Nov 2014

    Nothing published for this version

  34. v2.2.0 24 Jun 2014

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive