- This educational project provides a basic implementation of Role-Based Access Control (RBAC) using PHP and Object-Oriented Programming (OOP) principles
- It was created to explore fundamental concepts of computer science, including algorithms and design patterns
The system includes essential features for:
- User registration
- Authorization
- Authentication
It is built around three primary classes:
UserRolePermission
And two relational classes:
UserRoleRolePermission
- PHP with PDO extension
- Basic OOP structure
- Prepared SQL statements
- Fundamental SQL operations
- PHP:
Hash,SPL,Data Structures,Sessions(optional),OAuth(optional) - Implementation of PSR standards
- Integration with PHPUnit for testing
- Optional multi-factor authentication
- Use of design patterns and algorithms
- Introduction of frameworks
- Use of abstract classes and interfaces
- Verify if a user has a specific role
- Verify if a role includes a specific permission
- The
Authclass handles core authentication logic - The
WorkDBclass manages database queries - The
Queryclass stores all SQL statements
This project is intended for learning purposes and may evolve over time.
Contributions, suggestions, and feedback are welcome.