{"id":13684085,"url":"https://github.com/cakephp/acl","last_synced_at":"2025-10-03T13:02:54.276Z","repository":{"id":17290633,"uuid":"20060949","full_name":"cakephp/acl","owner":"cakephp","description":"Plugin for managing ACL in CakePHP applications.","archived":false,"fork":false,"pushed_at":"2024-04-01T16:59:50.000Z","size":1888,"stargazers_count":109,"open_issues_count":13,"forks_count":89,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-04-30T20:33:00.738Z","etag":null,"topics":["acl","cakephp","cakephp-plugin","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cakephp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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}},"created_at":"2014-05-22T12:58:38.000Z","updated_at":"2024-12-16T06:55:18.000Z","dependencies_parsed_at":"2024-04-10T02:56:06.316Z","dependency_job_id":"a64e91a8-46c5-4c8b-bf6b-f5289dbe971b","html_url":"https://github.com/cakephp/acl","commit_stats":{"total_commits":1471,"total_committers":111,"mean_commits":"13.252252252252251","dds":0.8042148198504419,"last_synced_commit":"c72edaed0a55ed618fc70cbc56684fff670e5a8e"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/cakephp/acl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Facl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Facl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Facl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Facl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cakephp","download_url":"https://codeload.github.com/cakephp/acl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Facl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261967132,"owners_count":23237663,"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":["acl","cakephp","cakephp-plugin","php"],"created_at":"2024-08-02T14:00:25.189Z","updated_at":"2025-10-03T13:02:49.244Z","avatar_url":"https://github.com/cakephp.png","language":"PHP","readme":"# CakePHP Acl Plugin\n\n[![Build Status](https://img.shields.io/travis/cakephp/acl/master.svg?style=flat-square)](https://travis-ci.org/cakephp/acl)\n[![Coverage Status](https://img.shields.io/codecov/c/github/cakephp/acl.svg?style=flat-square)](https://codecov.io/github/cakephp/acl)\n[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.txt)\n\n\u003e ℹ️ **The ACL Plugin is not actively maintained by the CakePHP core team.** ℹ️ PR's to fix problems are welcome.\n\u003e\n\u003e As a modern alternative please check out the [Authentication](https://github.com/cakephp/authentication) and [Authorization](https://github.com/cakephp/authorization) plugins.\n\nA plugin for managing ACL in CakePHP applications.\n\n## Installing via composer\n\nYou can install this plugin into your CakePHP application using [composer](https://getcomposer.org).\n\nThe recommended way to install composer packages is:\n\n```\ncomposer require cakephp/acl\n```\n\nThen in your `src/Application.php`:\n```php\npublic function bootstrap()\n{\n    parent::bootstrap();\n    $this-\u003eaddPlugin('Acl');\n}\n```\n\n## Creating tables\n\nTo create the ACL requires tables, run the following `Migrations` command:\n\n```\nbin/cake migrations migrate -p Acl\n```\n\n## Attaching the behavior\n\nAdd the `Acl` behavior to your table so it will automatically create an `aco` whenever a new record is saved:\n\n```php\npublic function initialize(array $config)\n{\n    parent::initialize($config);\n\n    $this-\u003eaddBehavior('Acl.Acl', ['controlled']);\n}\n```\n\n## Updating the entity\n\nBefore you can start using the behavior, you MUST add the `parentNode()` method to the corresponding `Entity` file or the `AclBehavior` will not be able to determine the parent-\u003echild relationships. Also make make sure the method returns either null or a parent Model reference.\n\n```php\npublic function parentNode() {\n    return null;\n}\n```\n\n\u003e If things went well you should now see an entry appearing in the\n\u003e `acos` database table whenever you save a new record.\n\n## Running tests\n\nAssuming you have PHPUnit installed system wide using one of the methods stated\n[here](https://phpunit.de/manual/current/en/installation.html), you can run the\ntests for the Acl plugin by doing the following:\n\n1. Copy `phpunit.xml.dist` to `phpunit.xml`\n2. Add the relevant database credentials to your phpunit.xml if you want to run tests against\n   a non-SQLite datasource.\n3. Run `phpunit`\n","funding_links":[],"categories":["Authentication and Authorization"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakephp%2Facl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcakephp%2Facl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakephp%2Facl/lists"}