Skip to content

A very minimalistic approach at handling user access control in PHP

Notifications You must be signed in to change notification settings

zeustd/minimalistic-user-access-control-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

minimalistic-user-access-control-php

A very minimalistic approach at handling user access control in PHP

To use this class, you would first create an instance of the AccessControl class, then call the checkPermission() method to check if a given role is allowed to perform a given action. For example:

This is just a simple example to illustrate the basic concepts. In a real-world application, you would likely want to add more features and functionality to the AccessControl class, such as loading the role and permission data from a database, or allowing multiple roles to be assigned to a single user.

About

A very minimalistic approach at handling user access control in PHP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages