{"id":16673250,"url":"https://github.com/doganoo/simple-rbac","last_synced_at":"2025-03-21T17:33:00.864Z","repository":{"id":56970743,"uuid":"136982648","full_name":"doganoo/simple-rbac","owner":"doganoo","description":"Simple leightweight PHP Role Based Access Control library","archived":false,"fork":false,"pushed_at":"2023-10-24T09:09:16.000Z","size":139,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-01T08:12:52.170Z","etag":null,"topics":["access-control","permission","permission-manager","permissions","php","php7","role","role-based-access-control","roles","user-management"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doganoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-06-11T21:25:19.000Z","updated_at":"2024-12-06T18:11:38.000Z","dependencies_parsed_at":"2022-08-21T07:10:23.055Z","dependency_job_id":"0f6d930f-db66-46bd-a701-8557c9922e82","html_url":"https://github.com/doganoo/simple-rbac","commit_stats":{"total_commits":50,"total_committers":2,"mean_commits":25.0,"dds":0.07999999999999996,"last_synced_commit":"fe11afdee83bfd6122e125f97c2d911219630c38"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doganoo%2Fsimple-rbac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doganoo%2Fsimple-rbac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doganoo%2Fsimple-rbac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doganoo%2Fsimple-rbac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doganoo","download_url":"https://codeload.github.com/doganoo/simple-rbac/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244147343,"owners_count":20405942,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["access-control","permission","permission-manager","permissions","php","php7","role","role-based-access-control","roles","user-management"],"created_at":"2024-10-12T12:25:26.020Z","updated_at":"2025-03-21T17:33:00.483Z","avatar_url":"https://github.com/doganoo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-rbac\nSimple leightweight PHP Role Based Access Control library\n\n## How does this library work?\n\nI have tried to keep things simple. The main idea was to let the user implement an interface which provides the user and his permissions. The permissions are assigned to roles and roles are assigned to users. \n\nThe library provides a simple way to verify permissions without re-inventing the wheel.\n\nThe library is also available on Packagist: https://packagist.org/packages/doganoo/simple-rbac\n\nmissing something? create a pull request!\n\n## Changelog\n\n* 1.3.0 supporting owners: \n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require doganoo/simple-rbac\n```\n\n## Usage\n\nThere are two main interfaces you have to implement:\n\n```\n* doganoo\\SimpleRBAC\\Common\\IUser\n* doganoo\\SimpleRBAC\\Common\\IDataProvider\n```\nThe first interface represents the user to whom permissions are granted or denied. The second interface holds all necessary information, such as the user, a single permission and default permissions.\n\nIDataProvider can be used to connect to a data source (database, files, HTTP, etc.) in order to set up.\n\nThe ```doganoo\\SimpleRBAC\\Handler\\PermissionHandler``` class uses the interfaces above to determine whether an action is permitted or not.\n\n```doganoo\\SimpleRBAC\\Common\\IPermission``` and ```doganoo\\SimpleRBAC\\Common\\IRole``` interfaces represent a single permission and a user's role.\n\n\n## Contributions\n\nFeel free to send a pull request to add more algorithms and data structures. \n\n## Maintainer/Creator\n\nDoğan Uçar ([@doganoo](https://www.dogan-ucar.de))\n\n## License\n\nMIT\n \n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoganoo%2Fsimple-rbac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoganoo%2Fsimple-rbac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoganoo%2Fsimple-rbac/lists"}