Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boleiros/guardian
Access Control List(ACL) for CakePHP3.x (beta)
https://github.com/boleiros/guardian
acl cakephp cakephp-plugin cakephp3 php
Last synced: about 1 month ago
JSON representation
Access Control List(ACL) for CakePHP3.x (beta)
- Host: GitHub
- URL: https://github.com/boleiros/guardian
- Owner: boleiros
- Created: 2017-04-12T23:43:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-20T14:03:38.000Z (over 7 years ago)
- Last Synced: 2024-04-17T01:15:00.680Z (8 months ago)
- Topics: acl, cakephp, cakephp-plugin, cakephp3, php
- Language: PHP
- Homepage: http://cakephpbrasil.com.br
- Size: 3.4 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Guardian plugin for CakePHP ACL
## Installation
You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).
The recommended way to install composer packages is:
```
composer require boleiros/guardian
```## Enable Plugin
```php
// config/bootstrap.phpPlugin::load('Guardian', ['bootstrap' => true, 'routes' => true]);
```
Or, in your terminal:```
bin/cake plugin load -b -r Gardian
```## Run Migrations
```
bin/cake migrations migrate --plugin Guardian
```## Usage
1. import and use the Guardian Trait on your user Model
```
//User.php
hasPermission('users.index') ```