{"id":20103144,"url":"https://github.com/dotkernel/dot-controller-plugin-authorization","last_synced_at":"2025-05-06T08:31:08.829Z","repository":{"id":56971395,"uuid":"68953818","full_name":"dotkernel/dot-controller-plugin-authorization","owner":"dotkernel","description":"DotKernel authorization controller plugin component","archived":false,"fork":false,"pushed_at":"2024-03-25T16:57:55.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"2.9-PHP-8.1","last_synced_at":"2025-04-19T09:41:50.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dotkernel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-22T19:12:03.000Z","updated_at":"2023-08-17T13:04:11.000Z","dependencies_parsed_at":"2024-11-16T04:00:46.211Z","dependency_job_id":null,"html_url":"https://github.com/dotkernel/dot-controller-plugin-authorization","commit_stats":{"total_commits":19,"total_committers":6,"mean_commits":"3.1666666666666665","dds":0.368421052631579,"last_synced_commit":"07fb23a6474d30bcb7c78b81e2c91ed76ff3f38e"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-controller-plugin-authorization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-controller-plugin-authorization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-controller-plugin-authorization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fdot-controller-plugin-authorization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotkernel","download_url":"https://codeload.github.com/dotkernel/dot-controller-plugin-authorization/tar.gz/refs/heads/2.9-PHP-8.1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252648535,"owners_count":21782405,"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-11-13T17:34:26.597Z","updated_at":"2025-05-06T08:31:08.615Z","avatar_url":"https://github.com/dotkernel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!CAUTION]\n\u003e ## Security-Only Maintenance Mode\n\u003e \n\u003e This package is considered feature-complete, and is now in **security-only** maintenance mode.\n\n# dot-controller-plugin-authorization\n\nAuthorization controller plugin\n\n![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-controller-plugin-authorization)\n[![GitHub license](https://img.shields.io/github/license/dotkernel/dot-controller-plugin-authorization)](https://github.com/dotkernel/dot-controller-plugin-authorization/blob/2.0.1/LICENSE.md)\n![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-controller-plugin-authorization/2.9.2)\n\n\n## Installation\n\nRun the following command\n```bash\n$ composer require dotkernel/dot-controller-plugin-authorization\n```\n\nThis will also install packages `dotkernel/dot-controller` and `dotkernel/dot-authorization` as dependencies.\nNext, enable the module by merging the `ConfigProvider` to your application's configuration.\n\n## Usage\n\nIn any controller, you can access this plugin by calling\n```php\n$this-\u003eauthorization()-\u003e...\n```\n\nThis plugin defines one method, as a proxy to the registered authorization service\n```php\n$this-\u003eauthorization()-\u003eisGranted($permission, array $roles = [], $context = null);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotkernel%2Fdot-controller-plugin-authorization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotkernel%2Fdot-controller-plugin-authorization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotkernel%2Fdot-controller-plugin-authorization/lists"}