PHP Classes

Permissions: Manipulate user access permission using bit masks

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 4,154 All time: 733 This week: 660Up
Version License Categories
permission 1.0GNU General Publi...User Management, Math
Description 

Author

This class uses integer bit masks to represent user access permissions. Each bit of an integer permission value represents one condition that determines whether the user can read, write, delete, etc. an associated resource. This allows easy and acurate storage of complex sets permissions in a single integer value.

The class can convert back and forth between permission bit mask values and an associative array of boolean values that has separate entries for each permission bit.

Picture of Keith
Name: Keith <contact>
Classes: 1 package by
Country: United States United States

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file example.php Example An example of how to use the permissions class
Plain text file permissions.class.php Class The class deal with bitmask permissions

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:4,154
This week:0
All time:733
This week:660Up
User Ratings User Comments (1)
 All time
Utility:81%StarStarStarStarStar
Consistency:89%StarStarStarStarStar
Documentation:-
Examples:72%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1761
 
very nice! simple and useful! amazing.
16 years ago (Cesar Marinho)
67%StarStarStarStar