{"id":42362304,"url":"https://github.com/phramework/basic-authentication","last_synced_at":"2026-01-27T17:13:55.264Z","repository":{"id":57041082,"uuid":"46679293","full_name":"phramework/basic-authentication","owner":"phramework","description":" Basic authentication for Phramework","archived":false,"fork":false,"pushed_at":"2019-11-14T10:53:04.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-19T12:48:57.509Z","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/phramework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-22T20:46:45.000Z","updated_at":"2019-11-14T10:53:07.000Z","dependencies_parsed_at":"2022-08-23T23:30:50.535Z","dependency_job_id":null,"html_url":"https://github.com/phramework/basic-authentication","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/phramework/basic-authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fbasic-authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fbasic-authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fbasic-authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fbasic-authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phramework","download_url":"https://codeload.github.com/phramework/basic-authentication/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fbasic-authentication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28816631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"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":"2026-01-27T17:13:55.200Z","updated_at":"2026-01-27T17:13:55.256Z","avatar_url":"https://github.com/phramework.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic authentication\nBasic authentication implementation for phramework\n\n[![Build Status](https://travis-ci.org/phramework/basic-authentication.svg?branch=master)](https://travis-ci.org/phramework/basic-authentication)\n\n## Usage\nRequire package\n\n```\ncomposer require phramework/basic-authentication\n```\n\n```php\n//Set authentication class\n\\Phramework\\Authentication\\Manager::register(\n    \\Phramework\\Authentication\\BasicAuthentication\\BasicAuthentication::class\n);\n\n//Set method to fetch user object, including password attribute\n\\Phramework\\Authentication\\Manager::setUserGetByEmailMethod(\n    [\\MyApp\\API\\Models\\User::class, 'getByEmailWithPassword']\n);\n\n\\Phramework\\Authentication\\Manager::setAttributes(\n    ['user_type', 'email']\n);\n```\n\n## Install dependencies\n\n```bash\ncomposer update\n```\n\n## Test and lint code\n\n```bash\ncomposer lint\ncomposer test\n```\n\n# License\nCopyright 2015 Xenofon Spafaridis\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n```\nhttp://www.apache.org/licenses/LICENSE-2.0\n```\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphramework%2Fbasic-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphramework%2Fbasic-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphramework%2Fbasic-authentication/lists"}