Skip to content

About

A very minimalistic approach at handling user access control in PHP

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages