{"id":19081478,"url":"https://github.com/intracto/passwordvalidator","last_synced_at":"2025-04-30T07:44:27.227Z","repository":{"id":54911908,"uuid":"212777824","full_name":"Intracto/PasswordValidator","owner":"Intracto","description":"Symfony validation for Intracto's standard password policy","archived":false,"fork":false,"pushed_at":"2023-10-27T08:50:11.000Z","size":18,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-13T15:42:14.225Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Intracto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-10-04T09:17:55.000Z","updated_at":"2023-10-27T08:34:03.000Z","dependencies_parsed_at":"2024-11-09T02:36:05.131Z","dependency_job_id":null,"html_url":"https://github.com/Intracto/PasswordValidator","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.1333333333333333,"last_synced_commit":"c196839429e40fde5e9e4b822ed453b85d2ffdb0"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FPasswordValidator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FPasswordValidator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FPasswordValidator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FPasswordValidator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Intracto","download_url":"https://codeload.github.com/Intracto/PasswordValidator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251664567,"owners_count":21624153,"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":[],"created_at":"2024-11-09T02:36:00.226Z","updated_at":"2025-04-30T07:44:27.178Z","avatar_url":"https://github.com/Intracto.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PasswordValidator\nSymfony validation for Intracto's standard password policy\n\n### The policy consists of:\n- minimum length (defaults on 8 characters)\n- at least one upper cased character\n- at least one lower cased character\n- at least one number\n- cannot equal the username\n- maximum length (defaults on integer limit) - de facto optional\n\n## installation\n\nUsing composer:\n\n```\ncomposer require intracto/password-validator\n```\n\nThe password constraint and -validator are dependent on both `symfony/validator` and `symfony/security-core`.\n\n\n## Usage\n\nThe validator is designed as a class validator on an entity implementing the `Symfony\\Component\\Security\\Core\\User\\UserInterface`.\n\nIn order to validate the password, you need to provide the accessor and property path to the plain password which needs validation.\n\nA basic working example would be:\n\n\n```\n\n/**\n * @Password(plainPasswordAccessor=\"getPlainPassword\", plainPasswordProperty=\"plain_password\")\n */\nclass User implements UserInterface\n{\n\n   /** @var string */\n   private $plain_password;\n    \n   /** @return string */\n   public function getPlainPassword(): string\n   {\n       return $this-\u003eplain_password;\n   }\n      \n      ...\n\n}\n```\n\n## Contributions\n\nDo you feel the code or policy are too rigid, or just not strict enough? Feel free to open up an issue and/or submit a pull request with your suggestions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintracto%2Fpasswordvalidator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintracto%2Fpasswordvalidator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintracto%2Fpasswordvalidator/lists"}