Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/OWASP/rbac
PHP-RBAC is an authorization library for PHP. It provides developers with NIST Level 2 Standard Role Based Access Control and more, in the fastest implementation yet.
https://github.com/OWASP/rbac
Last synced: 28 days ago
JSON representation
PHP-RBAC is an authorization library for PHP. It provides developers with NIST Level 2 Standard Role Based Access Control and more, in the fastest implementation yet.
- Host: GitHub
- URL: https://github.com/OWASP/rbac
- Owner: OWASP
- License: apache-2.0
- Created: 2013-08-13T08:29:20.000Z (over 11 years ago)
- Default Branch: develop
- Last Pushed: 2024-04-19T19:45:07.000Z (8 months ago)
- Last Synced: 2024-09-09T14:24:14.316Z (3 months ago)
- Language: PHP
- Homepage: http://phprbac.net/
- Size: 5.64 MB
- Stars: 429
- Watchers: 54
- Forks: 140
- Open Issues: 58
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-auth - PHP-RBAC - Authorization library for PHP which provides developers with NIST Level 2 hierarchical role-based access control. (Authorization / <a name="authZ-php"></a>PHP)
README
#PHP-RBAC v2.x
PHP-RBAC is an authorization library for PHP. It provides developers with NIST Level 2 Hierarchical Role Based Access Control and more, in the fastest implementation yet.
**Current Stable Release:** [PHP-RBAC v2.0](https://sourceforge.net/projects/phprbac/files/latest/download?source=dlp)
##Connect With Us
* Home Page: [http://phprbac.net/](http://phprbac.net/)
* OWASP Project Page: [https://www.owasp.org/index.php/Phprbac](https://www.owasp.org/index.php/Phprbac)
* PHP-RBAC Documentation: [http://phprbac.net/docs_contents.php](http://phprbac.net/docs_contents.php)
* PHP-RBAC Wiki: [https://github.com/OWASP/rbac/wiki](https://github.com/OWASP/rbac/wiki)
* PHP-RBAC API: [http://phprbac.net/api.php](http://phprbac.net/api.php)
* Issue Tracker: [https://github.com/OWASP/rbac/issues?state=open](https://github.com/OWASP/rbac/issues?state=open)
* Mailing List: [https://lists.owasp.org/mailman/listinfo/owasp_phprbac](https://lists.owasp.org/mailman/listinfo/owasp_phprbac)##What is an Rbac System?
Take a look at the "[Before You Begin](http://phprbac.net/docs_before_you_begin.php)" section of our [Documentation](http://phprbac.net/docs_contents.php) to learn what an RBAC system is and what PHP-RBAC has to offer you and your project.
##NIST Level 2 Compliance
For information regarding NIST RBAC Levels, please see [This Paper](http://csrc.nist.gov/rbac/sandhu-ferraiolo-kuhn-00.pdf).
For more great resources see the [NIST RBAC Group Page](http://csrc.nist.gov/groups/SNS/rbac/).
##Installation
You can now use [Composer](https://getcomposer.org/) to install the PHP-RBAC code base.
For Installation Instructions please refer to the "[Getting Started](http://phprbac.net/docs_getting_started.php)" section of our [Documentation](http://phprbac.net/docs_contents.php).
##Usage##
**Instantiating a PHP-RBAC Object**
With a 'use' statement:use PhpRbac;
$rbac = new Rbac();Without a 'use' statement, outside of a namespace:
$rbac = new PhpRbac\Rbac();Without a 'use' statement, inside of another namespace (notice the leading backslash):
$rbac = new \PhpRbac\Rbac();##PHP-RBAC and PSR
PHP-RBAC's Public API is now fully PSR-0, PSR-1 and PSR-2 compliant.
You can now:
* Use Composer to install/update PHP-RBAC
* Use any PSR-0 compliant autoloader with PHP-RBAC
* Use the included autoloader to load PHP-RBAC**If you notice any conflicts with PSR compliance please [Submit an Issue](https://github.com/OWASP/rbac/issues/new).**
##The future of PHP-RBAC
We are in the process of refactoring the PHP-RBAC internals. We have two goals in mind while doing this:
* To meet modern PHP OOP "Best Practices"
* To meet PHP-FIG PSR compliance: http://www.php-fig.org/With a PSR compliant Public API already in place we can continue to work towards our goals one piece at a
time without altering the Public API that developers are working with and rely on, making the transition as seamless
and invisible as possible.##Contributing##
We welcome all contributions that will help make PHP-RBAC even better tomorrow than it is today!
Please visit the [PHP-RBAC Wiki](https://github.com/OWASP/rbac/wiki) to learn about our development process and workflow.
###How You Can Help
* Report Bugs, Enhancement Requests or Documentation errors using our [Issue Tracker](https://github.com/OWASP/rbac/issues?state=open)
* [Choose a Bug](https://github.com/OWASP/rbac/issues?state=open) to work on and submit a Pull Request
* Make helpful suggestions and contributions to the [Documentation](http://phprbac.net/docs_contents.php) using our [Issue Tracker](https://github.com/OWASP/rbac/issues?state=open)
* Spread the word about PHP-RBAC by:
* Creating Tutorials
* Blogging
* [Tweeting](https://twitter.com/)
* [Facebooking](https://www.facebook.com/)
* [Google+ing](https://plus.google.com/)
* Talking to friends and colleagues about us