{"id":21448371,"url":"https://github.com/boleiros/guardian","last_synced_at":"2026-04-19T19:01:39.677Z","repository":{"id":62495786,"uuid":"88106140","full_name":"boleiros/guardian","owner":"boleiros","description":"Access Control List(ACL) for CakePHP3.x (beta)","archived":false,"fork":false,"pushed_at":"2017-05-20T14:03:38.000Z","size":3570,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-12T11:06:55.546Z","etag":null,"topics":["acl","cakephp","cakephp-plugin","cakephp3","php"],"latest_commit_sha":null,"homepage":"http://cakephpbrasil.com.br","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/boleiros.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":"2017-04-12T23:43:41.000Z","updated_at":"2017-06-26T18:53:56.000Z","dependencies_parsed_at":"2022-11-02T09:45:38.748Z","dependency_job_id":null,"html_url":"https://github.com/boleiros/guardian","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/boleiros/guardian","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boleiros%2Fguardian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boleiros%2Fguardian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boleiros%2Fguardian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boleiros%2Fguardian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boleiros","download_url":"https://codeload.github.com/boleiros/guardian/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boleiros%2Fguardian/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32018764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["acl","cakephp","cakephp-plugin","cakephp3","php"],"created_at":"2024-11-23T03:15:10.297Z","updated_at":"2026-04-19T19:01:39.633Z","avatar_url":"https://github.com/boleiros.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Guardian plugin for CakePHP ACL\n\n## Installation\n\nYou can install this plugin into your CakePHP application using [composer](http://getcomposer.org).\n\nThe recommended way to install composer packages is:\n\n```\ncomposer require boleiros/guardian\n```\n\n## Enable Plugin\n\n```php\n// config/bootstrap.php\n\nPlugin::load('Guardian', ['bootstrap' =\u003e true, 'routes' =\u003e true]);\n```\nOr, in your terminal:\n\n```\nbin/cake plugin load -b -r Gardian\n```\n\n## Run Migrations\n\n```\nbin/cake migrations migrate --plugin Guardian\n```\n\n## Usage\n\n1. import and use the Guardian Trait on your user Model\n```\n//User.php\n\u003c?php\nnamespace App\\Model\\Entity;\n\nuse Cake\\ORM\\Entity;\nuse Guardian\\Model\\Traits\\Guardian;\n\nclass User extends Entity\n{\n\n    use Guardian;\n    ....\n\n```\n2. call the method passing the name of the permission:\n``` $user-\u003ehasPermission('users.index') ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboleiros%2Fguardian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboleiros%2Fguardian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboleiros%2Fguardian/lists"}