PHPackages                             alexdpy/acl - 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. alexdpy/acl

ActiveLibrary

alexdpy/acl
===========

Acl - Php

0.3.0(10y ago)15911MITPHPPHP &gt;=5.4

Since Aug 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/AlexDpy/Acl)[ Packagist](https://packagist.org/packages/alexdpy/acl)[ RSS](/packages/alexdpy-acl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (4)Used By (1)

ACL [![Build Status](https://camo.githubusercontent.com/a2b9d0ee705216b8023398752ef2fe8190bba805d4a27d52a11b1663d55c622e/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f416c65784470792f41636c2e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/AlexDpy/Acl)
=================================================================================================================================================================================================================================================================================

[](#acl-)

> The easiest way to dynamic Access Control List

This library is a PHP implementation of the ACL model. It has been designed to be very easy to use.

Install
-------

[](#install)

```
$ composer require alexdpy/acl
```

Update your database schema
---------------------------

[](#update-your-database-schema)

You have to create the `acl_permissions` table.
You can generate the query output by using the `vendor/bin/acl` command in your terminal.

```
$ vendor/bin/acl schema:get-create-query
```

Custom options are:

- the permissions table name
- the requester column length
- the resource column length

Usage
-----

[](#usage)

First, you have to choose a DatabaseProvider.
This library supports DoctrineDbal/ORM (~2.4), CakephpOrm (~3.0), IlluminateDatabase (&gt;=4.2) or native PDO ([./src/Database/Provider](./src/Database/Provider)).

If you use another database connection library, you have to create a DatabaseProvider that implements the `AlexDpy\Acl\Database\Provider\DatabaseProviderInterface`.

```
