Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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+)
- Host: GitHub
- URL: https://github.com/ipublikuj-archive/permissions
- Owner: ipublikuj-archive
- License: other
- Archived: true
- Created: 2014-10-14T20:43:50.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-04-12T08:09:36.000Z (over 5 years ago)
- Last Synced: 2024-09-23T01:47:58.268Z (about 1 month ago)
- Topics: ipub, ipublikuj, nette, nette-extension, nette-framework, nette-security, permission, permission-checker, permissions, php, php7, php71, php72
- Language: PHP
- Homepage:
- Size: 98.6 KB
- Stars: 13
- Watchers: 2
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license.md
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