Componette

Componette

ipublikuj-archive

ipublikuj-archive / permissions v2.1.3

Simple permission checker for Nette Framework (2.4+)

download-cloud-line composer require ipub/permissions

Permissions

Build Status Scrutinizer Code Coverage Scrutinizer Code Quality Latest Stable Version Composer Downloads License

Simple permission checker for Nette Framework

Installation

The best way to install ipub/permissions is using Composer:

$ composer require ipub/permissions:@dev

After that you have to register extension in config.neon.

extensions:
	permission: IPub\Permissions\DI\PermissionsExtension

Package contains trait, which you will have to use in presenter to override default checkRequirements method. This works only for PHP 5.4+, for older version you can simply copy trait content and paste it into class where you want to use it.

<?php

class BasePresenter extends Nette\Application\UI\Presenter
{

	use IPub\Permissions\TPermission;

}

Documentation

Learn how to control access to your application in documentation.


Homepage https://www.ipublikuj.eu and repository http://github.com/iPublikuj/permissions.

  • v2.1.3 v2.1.3

  • v2.1.2 v2.1.2

    • Minor fixes
  • v2.1.1 v2.1.1

    • Yet another code cleaning
  • v2.1.0 v2.1.0

    • Added support for PHP7.2
  • v2.0.0 v2.0.0

    • Big refactoring
    • Added support for Nette 2.4
    • Drop old php versions
    • Refactored to PHP7
    • Fixed inheritance bugs
    • Improved automation
  • v1.0.1 v1.0.1

    • Fixed typos
    • Updated definitions
  • v1.0.0 v1.0.0

Componette Componette felix@nette.org