{"id":15027174,"url":"https://github.com/teodoroleckie/password","last_synced_at":"2026-02-18T04:36:18.982Z","repository":{"id":57070508,"uuid":"365287387","full_name":"teodoroleckie/password","owner":"teodoroleckie","description":"⚡ PHP password hash validator / password requirements validator","archived":false,"fork":false,"pushed_at":"2021-05-11T07:25:05.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T11:46:45.445Z","etag":null,"topics":["generate","hash","hash-validator","password","password-hash","password-validator","php-8","php-password","safety-password","security","security-password","validator"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teodoroleckie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["teodoroleckie"],"custom":["https://www.paypal.com/donate?business=ZHYA2MTGA4884\u0026currency_code=USD"]}},"created_at":"2021-05-07T16:07:15.000Z","updated_at":"2022-10-07T07:35:53.000Z","dependencies_parsed_at":"2022-08-24T10:41:17.413Z","dependency_job_id":null,"html_url":"https://github.com/teodoroleckie/password","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/teodoroleckie/password","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Fpassword","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Fpassword/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Fpassword/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Fpassword/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teodoroleckie","download_url":"https://codeload.github.com/teodoroleckie/password/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Fpassword/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29568743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T04:18:28.490Z","status":"ssl_error","status_checked_at":"2026-02-18T04:13:49.018Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["generate","hash","hash-validator","password","password-hash","password-validator","php-8","php-password","safety-password","security","security-password","validator"],"created_at":"2024-09-24T20:05:53.651Z","updated_at":"2026-02-18T04:36:13.974Z","avatar_url":"https://github.com/teodoroleckie.png","language":"PHP","funding_links":["https://github.com/sponsors/teodoroleckie","https://www.paypal.com/donate?business=ZHYA2MTGA4884\u0026currency_code=USD"],"categories":[],"sub_categories":[],"readme":"# PHP password manager - Password hash validator / password requirements validator\nPassword hash validator / password requirements validator \n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/teodoroleckie/password/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/teodoroleckie/password/?branch=main)\n[![Build Status](https://scrutinizer-ci.com/g/teodoroleckie/password/badges/build.png?b=main)](https://scrutinizer-ci.com/g/teodoroleckie/password/build-status/main)\n[![Total Downloads](https://img.shields.io/packagist/dt/tleckie/password.svg?style=flat-square)](https://packagist.org/packages/tleckie/password)\n[![Code Intelligence Status](https://scrutinizer-ci.com/g/teodoroleckie/password/badges/code-intelligence.svg?b=main)](https://scrutinizer-ci.com/code-intelligence)\n\n\n### Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require tleckie/password\n```\n\n### Usage\n\n### Register user in database:\n\n```php\n\nrequire_once \"vendor/autoload.php\";\n\nuse Tleckie\\Password\\Validator;\nuse Tleckie\\Password\\Requirements;\n\n$passwordManager = new Validator();\n\n$validatePasswordForRegistration = 'Secure123.Validator';\n\n//Check if the password meets the requirements to store it.\n$passwordManager-\u003eisValid($validatePasswordForRegistration); // true\n\n// You can customize the password requirements\n$requirements = new Requirements(10, false, true, false, true);\n$passwordManager = new Validator($requirements);\n\n// Generate the hash to be stored in the database (user|hash).\n$storeInDataBase = $passwordManager-\u003ecreateHash($validatePasswordForRegistration);\n// User registration completed!\n```\n\n### Login:\n\n```php\n\nrequire_once \"vendor/autoload.php\";\n\nuse Tleckie\\Password\\Validator;\n\n$passwordManager = new Validator();\n\n// Find the user when logging in.\n$loginPassword = 'Secure123.Validator';\n$databaseUserHash = '$2y$08$WiqPWg.Gkd1CPVpCn/izl.DxhAeJCeo8SVpV03vBCb04.OgMEF81m';\n\n// We verify the hash stored in the database with the login passwords\n$passwordManager-\u003epasswordVerify($loginPassword, $databaseUserHash); // true\n\n// That's all! I hope this helps you\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteodoroleckie%2Fpassword","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteodoroleckie%2Fpassword","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteodoroleckie%2Fpassword/lists"}