{"id":13669148,"url":"https://github.com/unicodeveloper/laravel-password","last_synced_at":"2025-05-15T13:06:46.492Z","repository":{"id":55449698,"uuid":"62445825","full_name":"unicodeveloper/laravel-password","owner":"unicodeveloper","description":":closed_lock_with_key: :smiling_imp: Guard your users against entering dumb passwords in your Laravel 5 apps","archived":false,"fork":false,"pushed_at":"2020-12-30T04:56:53.000Z","size":66,"stargazers_count":427,"open_issues_count":0,"forks_count":56,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-15T02:08:34.229Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://goodheads.io/2016/07/03/introducing-laravel-password-v1-0/","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/unicodeveloper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-02T10:29:28.000Z","updated_at":"2024-11-04T00:58:18.000Z","dependencies_parsed_at":"2022-08-15T00:31:04.973Z","dependency_job_id":null,"html_url":"https://github.com/unicodeveloper/laravel-password","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-password","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-password/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-password/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-password/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unicodeveloper","download_url":"https://codeload.github.com/unicodeveloper/laravel-password/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346624,"owners_count":22055808,"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-08-02T08:01:04.087Z","updated_at":"2025-05-15T13:06:46.258Z","avatar_url":"https://github.com/unicodeveloper.png","language":"PHP","readme":"# laravel-password\n\n[![Latest Stable Version](https://poser.pugx.org/unicodeveloper/laravel-password/v/stable.svg)](https://packagist.org/packages/unicodeveloper/laravel-password)\n[![License](https://poser.pugx.org/unicodeveloper/laravel-password/license.svg)](LICENSE.md)\n[![Quality Score](https://img.shields.io/scrutinizer/g/unicodeveloper/laravel-password.svg?style=flat-square)](https://scrutinizer-ci.com/g/unicodeveloper/laravel-password)\n[![Total Downloads](https://img.shields.io/packagist/dt/unicodeveloper/laravel-password.svg?style=flat-square)](https://packagist.org/packages/unicodeveloper/laravel-password)\n\n\u003e #### Guard your users from security problems by preventing them from having dumb passwords\n\n### Introduction\n\nThis package can be used to verify **the user provided password is\nnot one of the top 10,000 worst passwords** as analyzed by a respectable IT security analyst. Read\nabout all [ here](https://xato.net/10-000-top-passwords-6d6380716fe0#.473dkcjfm),\n[here(wired)](http://www.wired.com/2013/12/web-semantics-the-ten-thousand-worst-passwords/) or\n[here(telegram)](http://www.telegraph.co.uk/technology/internet-security/10303159/Most-common-and-hackable-passwords-on-the-internet.html)\n\n\n## Installation\n\n[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.\n\nTo get the latest version of Laravel Password, simply add the following line to the require block of your `composer.json` file.\n\n```\n\"unicodeveloper/laravel-password\": \"1.0.*\"\n```\n\nYou'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.\n\n- If you're on Laravel 5.5 or above, that's all you need to do! Check out the usage examples below.\n- If you're on Laravel \u003c 5.5, you'll need to register the service provider. Open up `config/app.php` and add the following to the `providers` array:\n\n```php\nUnicodeveloper\\DumbPassword\\DumbPasswordServiceProvider::class\n```\n\n## Usage\n\nUse the rule `dumbpwd` in your validation like so:\n\n```php\n/**\n * Get a validator for an incoming registration request.\n *\n * @param  array  $data\n * @return \\Illuminate\\Contracts\\Validation\\Validator\n */\nprotected function validator(array $data)\n{\n    return Validator::make($data, [\n        'name' =\u003e 'required|max:255',\n        'email' =\u003e 'required|email|max:255|unique:users',\n        'password' =\u003e 'required|min:6|dumbpwd|confirmed',\n    ]);\n}\n```\n\nError shows on the page like so:\n\n\u003cimg width=\"1095\" alt=\"screen shot 2016-07-02 at 1 22 45 pm\" src=\"https://cloud.githubusercontent.com/assets/2946769/16540468/c6bd71f2-405d-11e6-8f34-d3a9b1b27e77.png\"\u003e\n\nBy default, the error message returned is `This password is just too common. Please try another!`.\n\nYou can customize the error message by opening `resources/lang/en/validation.php` and adding to the array like so:\n\n```php\n  'dumbpwd' =\u003e 'You are using a dumb password abeg',\n```\n\n\u003cimg width=\"1093\" alt=\"screen shot 2016-07-02 at 2 12 14 pm\" src=\"https://cloud.githubusercontent.com/assets/2946769/16540503/103e0390-405f-11e6-9c4c-5d02dc1ce7ec.png\"\u003e\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.\n\n## Inspiration\n\n* [Eugene Mutai](https://github.com/kn9ts/dumb-passwords)\n\n## How can I thank you?\n\nWhy not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!\n\nDon't forget to [follow me on twitter](https://twitter.com/unicodeveloper)!\n\nThanks!\nProsper Otemuyiwa.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Flaravel-password","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funicodeveloper%2Flaravel-password","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Flaravel-password/lists"}