{"id":21069053,"url":"https://github.com/kettasoft/passaudit","last_synced_at":"2025-08-01T06:36:57.038Z","repository":{"id":248919746,"uuid":"691106412","full_name":"kettasoft/PassAudit","owner":"kettasoft","description":"PassAudit is a powerful and efficient Laravel package designed to enhance the security of user passwords in your application. This package provides a comprehensive solution to prevent users from reusing their previous passwords, thereby mitigating the risk of unauthorized access.","archived":false,"fork":false,"pushed_at":"2024-07-18T07:05:06.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-01-20T21:40:24.856Z","etag":null,"topics":["checker","checking","passaudit","password","passwords","security"],"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/kettasoft.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}},"created_at":"2023-09-13T14:07:30.000Z","updated_at":"2024-07-18T07:05:09.000Z","dependencies_parsed_at":"2024-07-17T23:16:18.745Z","dependency_job_id":"803471f4-dc91-4092-a8d0-09a646127313","html_url":"https://github.com/kettasoft/PassAudit","commit_stats":null,"previous_names":["kettasoft/passaudit"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kettasoft%2FPassAudit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kettasoft%2FPassAudit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kettasoft%2FPassAudit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kettasoft%2FPassAudit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kettasoft","download_url":"https://codeload.github.com/kettasoft/PassAudit/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243510062,"owners_count":20302297,"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":["checker","checking","passaudit","password","passwords","security"],"created_at":"2024-11-19T18:31:11.433Z","updated_at":"2025-03-14T02:24:58.527Z","avatar_url":"https://github.com/kettasoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PassAudit\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/kettasoft/PassAudit/releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/release/kettasoft/PassAudit.svg?style=flat-square\" alt=\"Latest Version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/kettasoft/PassAudit\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/kettasoft/PassAudit/master.svg?style=flat-square\" alt=\"Build Status\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://packagist.org/packages/kettasoft/PassAudit\"\u003e\n    \u003cimg src=\"https://img.shields.io/packagist/dt/kettasoft/PassAudit.svg?style=flat-square\" alt=\"Total Downloads\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nPassAudit is a powerful and efficient Laravel package designed to enhance the security of user passwords in your application. This package provides a comprehensive solution to prevent users from reusing their previous passwords, thereby mitigating the risk of unauthorized access.\n\n## Installation\n\nYou can install the package via Composer:\n\n```bash\ncomposer require kettasoft/pass-audit\n```\n\n## Configuration\n\n\u003c!-- ### Steps to Configure --\u003e\n\n1. **Register Service Provider**\n\n- Add the service provider to the config/app.php file in the providers array:\n\n```php\n'providers' =\u003e [\n    Kettasoft\\PassAudit\\PassAuditServiceProvider::class,\n    ...\n],\n```\n\n**Publish Configuration**\n\n- Publish the package configuration file:\n\n```dash\nphp artisan vendor:publish --provider=\"Kettasoft\\PassAudit\\PassAuditServiceProvider\" --tag=\"config\"\n```\n\n- This will create a passaudit.php file in your config directory where you can customize the settings.\n\n**Publish Migration**\n\n- Publish the migration file:\n\n```dash\nphp artisan vendor:publish --provider=\"Kettasoft\\PassAudit\\PassAuditServiceProvider\" --tag=\"migrations\"\n```\n\nThen, run the migration:\n\n```dash\nphp artisan migrate\n```\n\n## Usage\n\n**Use Trait in User Model**\n\nAdd the `PassAudit` trait to your `User` model:\n\n```php\nnamespace App\\Models;\n\nuse Illuminate\\Foundation\\Auth\\User as Authenticatable;\nuse Kettasoft\\PassAudit\\PassAudit;\n\nclass User extends Authenticatable\n{\n    use PassAudit;\n\n    //...\n}\n```\n\n**Implement Interface to User Model**\n\n- Ensure your `User` model implements the `HasPassAuditChecker`:\n\n```php\nnamespace App\\Models;\n\nuse Kettasoft\\PassAudit\\Contracts\\HasPassAuditChecker;\n\nclass User extends Authenticatable implements HasPassAuditChecker\n{\n    //\n}\n```\n\n**Use Rule Validation in Request**\n\n- You can use the `PassAuditRule` in your request validation to prevent users from reusing their previous passwords:\n\n```php\nnamespace App\\Http\\Requests;\n\nuse Illuminate\\Foundation\\Http\\FormRequest;\nuse Kettasoft\\PassAudit\\Rules\\PassAuditRule;\n\nclass UpdatePasswordRequest extends FormRequest\n{\n    public function rules()\n    {\n        return [\n            'password' =\u003e ['required', 'string', 'min:8', new PassAuditRule($this-\u003euser())],\n        ];\n    }\n}\n```\n\n### Customization\n\nYou can customize the behavior of the package by modifying the `passaudit.php` configuration file. Options include:\n\n- The number of previous passwords to keep track of\n- The hashing algorithm to use\n\n### Contributing\n\nThank you for considering contributing to PassAudit! Please read the contributing guide before making a pull request.\n\n### License\n\nPassAudit is open-sourced software licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkettasoft%2Fpassaudit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkettasoft%2Fpassaudit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkettasoft%2Fpassaudit/lists"}