Search code examples
phppermissionsuser-management

PHP Permissions System


It may sound a bit weird, but in Bukkit (Minecraft Server) there's a permissions managment that works like that for example:

pluginname.class.function

Now i can give a user or group the permission to call let's say the function "create":

pluginname.class.create

or to all functions of a class:

pluginname.class.*

or even for all classes:

pluginname.*

Does anyone know a system that works like this for PHP? I googled but i found absolutely nothing. So I'm basically looking for a User/Group permissions managment system that also allows me to specify some kind of wildcards.


Solution

  • I believe what you are looking for is called Access Control Lists. Google has plenty of results for both plugins and classes.

    Also might be worth looking at:

    https://stackoverflow.com/questions/370371/recommend-a-php-acl-class