PHPackages                             nattreid/security - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. nattreid/security

ActiveLibrary

nattreid/security
=================

Security extension for Nette Framework

1.8.0(4y ago)05594MITPHPPHP &gt;= 7.1

Since Aug 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/nattreid/security)[ Packagist](https://packagist.org/packages/nattreid/security)[ RSS](/packages/nattreid-security/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (10)Versions (77)Used By (4)

Rozšíření Security pro Nette Framework
======================================

[](#rozšíření-security-pro-nette-framework)

Databázové ACL, uživatelé, authentizace a autorizace

Nastavení
---------

[](#nastavení)

Nastavení v **config.neon**

```
extensions:
    securityExt: NAttreid\Security\DI\SecurityExtension
```

dostupné nastavení

```
securityExt:
    namespace: 'user'
    authenticator:
        front: App\FrontAuthenticator
```

A přidat do orm model. V příkladu je extension orm pod názvem **orm**

```
orm:
    add:
        - NAttreid\Security\Model\Orm
```

Authenticator
-------------

[](#authenticator)

```
class FrontAuthenticator implements \NAttreid\Security\Authenticator\IAuthenticator {

    public function authenticate(array $credentials): Identity {
        // php code
    }

    public function getIdentity(int $userId): Identity {
        // php code
    }
}
```

TryUser
-------

[](#tryuser)

Komponenta pro dočasnou změnu identity uživatele

V BasePresenteru přidejte komponentu

```
    /** @inject */
    public $tryUserFactory;

    protected function startup()
    {
        parent::startup();
        $this['tryUser']->init();
    }

    protected function createComponentTryUser()
    {
        $control = $this->tryUserFactory->create(":Link:Nekam:");
        $control->permission = 'nazev.prav.pro.komponentu';
        return $control;
    }
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity73

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~27 days

Recently: every ~297 days

Total

75

Last Release

1577d ago

PHP version history (3 changes)1.0.0PHP &gt;= 5.6

1.4.1PHP &gt;= 7.0

1.5.0PHP &gt;= 7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a388aeb3f00b15a3af1c1a5d3a2107c94af1730c6043dd30ce32a63f95ea290?d=identicon)[attreid](/maintainers/attreid)

### Embed Badge

![Health badge](/badges/nattreid-security/health.svg)

```
[![Health](https://phpackages.com/badges/nattreid-security/health.svg)](https://phpackages.com/packages/nattreid-security)
```

###  Alternatives

[nette/nette

👪 Nette Framework - innovative framework for fast and easy development of secured web applications in PHP (metapackage)

1.6k2.8M335](/packages/nette-nette)[shetabit/visitor

Laravel visitor

565578.2k8](/packages/shetabit-visitor)[nette/web-project

Nette: Standard Web Project

10991.8k](/packages/nette-web-project)[pumukit/pumukit

Media Portal

5714.0k37](/packages/pumukit-pumukit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
