{"id":20876078,"url":"https://github.com/php-casbin/etcd-adapter","last_synced_at":"2026-04-24T00:38:28.404Z","repository":{"id":96365656,"uuid":"511153373","full_name":"php-casbin/etcd-adapter","owner":"php-casbin","description":"ETCD Adapter for Casbin, Casbin is a powerful and efficient open-source access control library.","archived":false,"fork":false,"pushed_at":"2022-08-16T16:38:54.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-30T08:57:04.135Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-casbin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-07-06T13:42:07.000Z","updated_at":"2022-07-09T06:24:33.000Z","dependencies_parsed_at":"2023-03-30T09:04:11.162Z","dependency_job_id":null,"html_url":"https://github.com/php-casbin/etcd-adapter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/php-casbin/etcd-adapter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-casbin%2Fetcd-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-casbin%2Fetcd-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-casbin%2Fetcd-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-casbin%2Fetcd-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-casbin","download_url":"https://codeload.github.com/php-casbin/etcd-adapter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-casbin%2Fetcd-adapter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32204710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T00:06:41.111Z","status":"ssl_error","status_checked_at":"2026-04-24T00:06:35.224Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-18T06:49:58.774Z","updated_at":"2026-04-24T00:38:28.389Z","avatar_url":"https://github.com/php-casbin.png","language":"PHP","readme":"# ETCD adapter for php-casbin\n\nETCD adapter for [PHP-Casbin](https://github.com/php-casbin/php-casbin).\n\n### Usage\n\n```php\n\nrequire_once './vendor/autoload.php';\n\nuse Casbin\\Enforcer;\nuse CasbinAdapter\\Etcd\\Adapter as EtcdAdapter;\n\n$adapter = new EtcdAdapter($server, $version);\n\n$e = new Enforcer('path/to/model.conf', $adapter);\n\n$sub = \"alice\"; // the user that wants to access a resource.\n$obj = \"data1\"; // the resource that is going to be accessed.\n$act = \"read\"; // the operation that the user performs on the resource.\n\nif ($e-\u003eenforce($sub, $obj, $act) === true) {\n    // permit alice to read data1\n} else {\n    // deny the request, show an error\n}\n```\n\n### Getting Help\n\n- [php-casbin](https://github.com/php-casbin/php-casbin)\n\n### License\n\nThis project is licensed under the [Apache 2.0 license](LICENSE).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-casbin%2Fetcd-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-casbin%2Fetcd-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-casbin%2Fetcd-adapter/lists"}