{"id":15374348,"url":"https://github.com/yurunsoft/yurunauth","last_synced_at":"2026-04-14T18:33:46.661Z","repository":{"id":57088777,"uuid":"120417181","full_name":"Yurunsoft/YurunAuth","owner":"Yurunsoft","description":"基于YurunPHP框架的权限控制类，提供一个思路，如需在其它框架中使用请自行改造。","archived":false,"fork":false,"pushed_at":"2018-02-07T08:50:30.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T04:44:38.576Z","etag":null,"topics":[],"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/Yurunsoft.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}},"created_at":"2018-02-06T07:22:43.000Z","updated_at":"2024-12-16T05:39:19.000Z","dependencies_parsed_at":"2022-08-20T16:50:26.115Z","dependency_job_id":null,"html_url":"https://github.com/Yurunsoft/YurunAuth","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yurunsoft%2FYurunAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yurunsoft%2FYurunAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yurunsoft%2FYurunAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yurunsoft%2FYurunAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yurunsoft","download_url":"https://codeload.github.com/Yurunsoft/YurunAuth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244759961,"owners_count":20505716,"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":[],"created_at":"2024-10-01T13:58:24.625Z","updated_at":"2025-10-20T12:08:29.444Z","avatar_url":"https://github.com/Yurunsoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YurunAuth\n\n基于YurunPHP框架的权限控制类，提供一个思路，如需在其它框架中使用请自行改造。\n\n## 简介\n\n### 表结构\n\nrole 是角色表，如：管理员\n\nrule 是权限规则表，如：编辑用户权限\n\nrole_rule 是角色和权限规则的关联表\n\nuser_role 是用户和角色的关联表\n\nuser_rule 是用户和权限规则的关联表\n\n### 思路\n\n用户拥有角色的时候，就拥有这些角色下面所有的权限。\n\n还可以为用户单独赋予这些角色所没有的权限。\n\n判定用户是否拥有权限时，从角色拥有的权限 + 用户拥有的权限中进行查找。\n\n## 安装\n\n在您的composer.json中加入配置：\n\n```json\n{\n    \"require\": {\n        \"yurunsoft/yurun-auth\": \"dev-master\"\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyurunsoft%2Fyurunauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyurunsoft%2Fyurunauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyurunsoft%2Fyurunauth/lists"}