Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ipublikuj-archive/permissions

Simple permission checker for Nette Framework (2.4+)
https://github.com/ipublikuj-archive/permissions

ipub ipublikuj nette nette-extension nette-framework nette-security permission permission-checker permissions php php7 php71 php72

Last synced: about 1 month ago
JSON representation

Simple permission checker for Nette Framework (2.4+)

Awesome Lists containing this project

README

        

# Permissions

[![Build Status](https://img.shields.io/travis/iPublikuj/permissions.svg?style=flat-square)](https://travis-ci.org/iPublikuj/permissions)
[![Scrutinizer Code Coverage](https://img.shields.io/scrutinizer/coverage/g/iPublikuj/permissions.svg?style=flat-square)](https://scrutinizer-ci.com/g/iPublikuj/permissions/?branch=master)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/iPublikuj/permissions.svg?style=flat-square)](https://scrutinizer-ci.com/g/iPublikuj/permissions/?branch=master)
[![Latest Stable Version](https://img.shields.io/packagist/v/ipub/permissions.svg?style=flat-square)](https://packagist.org/packages/ipub/permissions)
[![Composer Downloads](https://img.shields.io/packagist/dt/ipub/permissions.svg?style=flat-square)](https://packagist.org/packages/ipub/permissions)
[![License](https://img.shields.io/packagist/l/ipub/permissions.svg?style=flat-square)](https://packagist.org/packages/ipub/permissions)

Simple permission checker for [Nette Framework](http://nette.org/)

## Installation

The best way to install ipub/permissions is using [Composer](http://getcomposer.org/):

```sh
$ composer require ipub/permissions:@dev
```

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

```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