{"id":29867092,"url":"https://github.com/j-isreal/php-htpasswd","last_synced_at":"2026-05-17T17:38:21.290Z","repository":{"id":305274721,"uuid":"850781081","full_name":"j-isreal/php-htpasswd","owner":"j-isreal","description":"This small php app allows managing the htpasswd file via web","archived":false,"fork":false,"pushed_at":"2025-07-19T05:06:05.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T14:01:08.116Z","etag":null,"topics":["apache","html","htpasswd","nginx","password","php"],"latest_commit_sha":null,"homepage":"https://icllc.cc/devtool-php-htpasswd/","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/j-isreal.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-01T18:55:52.000Z","updated_at":"2025-07-19T05:09:30.000Z","dependencies_parsed_at":"2025-07-19T10:31:25.365Z","dependency_job_id":"3bb2b56d-944c-4f11-9e5d-09650d7aa7dc","html_url":"https://github.com/j-isreal/php-htpasswd","commit_stats":null,"previous_names":["j-isreal/php-htpasswd"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/j-isreal/php-htpasswd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-isreal%2Fphp-htpasswd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-isreal%2Fphp-htpasswd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-isreal%2Fphp-htpasswd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-isreal%2Fphp-htpasswd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j-isreal","download_url":"https://codeload.github.com/j-isreal/php-htpasswd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-isreal%2Fphp-htpasswd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33147965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["apache","html","htpasswd","nginx","password","php"],"created_at":"2025-07-30T13:19:47.868Z","updated_at":"2026-05-17T17:38:21.272Z","avatar_url":"https://github.com/j-isreal.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n# php-htpasswd\n\nThis small php app allows managing the htpasswd file via web.\n\nThis project assumes you are using a web server such as Apache or Nginx that can use htpasswd files, and that you have the htpasswd program installed.\n\nVisit [Apache](https://httpd.apache.org/docs/current/programs/htpasswd.html) for more info on htpasswd.\n\n\n## Create initial htpasswd file\nIf you don't already have an htpasswd file, create one.  You can use existing ones, too.\n\nUse the following command to create a new htpasswd file using Bcrypt as encryption for passwords.\n\nYou can use any filename in place of \u003cb\u003e`.htpasswd`\u003c/b\u003e below.  You can replace \u003cb\u003e`testuser`\u003c/b\u003e with any username.\n\n```\nhtpasswd -c -B .htpasswd testuser\n```\n\nThe `-c` means to create the file, and the `-B` is for using Bcrypt for password hashing.\n\n\n## Set the htpasswd filename in the php file\nBe sure you change the path/filename for the htpasswd file in the php file.\n\nChange the \u003cb\u003e`$file`\u003c/b\u003e variable to the correct filename between the single quotes.\n\n``\n$file = '.htpasswd';\n``\n\n## Security notes\nIf you put the htpasswd file in a web-accessible area, you are asking for security issues.\u003cbr\u003e\n\u003cem\u003ePlease visit the link below regarding Apache htpasswd security considerations.\u003c/em\u003e\n\n- If you are going to place the htpasswd file in a web-accessible folder for some reason, \u003cu\u003eat least\u003c/u\u003e:\n  - password-protect the folder, or\n  - use an .htaccess file to prevent viewing the htpasswd file online ([more on htaccess](https://httpd.apache.org/docs/current/howto/htaccess.html))\n \n\nThis php app uses Bcrypt to hash passwords, the default for the password_hash() function.\u003cbr\u003e\n(See [PHP Manual](https://www.php.net/manual/en/function.password-hash.php) for details.)\n\nThe apache user (apache or www-data) will need write access to the htpasswd file.\n\nVisit [this Apache page](https://httpd.apache.org/docs/current/programs/htpasswd.html#security) for more info on security considerations.\n\n\n#### Created by\nJacob \"Isreal\" - [https://www.jinet.us/dev/dev-projects/php-htpasswd/]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-isreal%2Fphp-htpasswd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj-isreal%2Fphp-htpasswd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-isreal%2Fphp-htpasswd/lists"}