PHPackages                             cms-orbit/password-security - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. cms-orbit/password-security

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

cms-orbit/password-security
===========================

Laravel password security package with comprehensive validation rules for strong password policies

1.1.3(5mo ago)02MITPHPPHP ^8.2

Since Nov 12Pushed 5mo agoCompare

[ Source](https://github.com/cms-orbit/password-security)[ Packagist](https://packagist.org/packages/cms-orbit/password-security)[ RSS](/packages/cms-orbit-password-security/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (6)Used By (0)

Laravel Password Security Package
=================================

[](#laravel-password-security-package)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![Laravel](https://camo.githubusercontent.com/51541a73ac5d5bcaa113098e92c9b7e3b9fa5b583ff20e2b605474431d404af1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d392e7825323025374325323031302e7825323025374325323031312e782d726564)](https://laravel.com)[![PHP](https://camo.githubusercontent.com/187240af044d09d5b14a1d9d9ebdf3f7a993e4c7bc09bdb46b4ba661a891bf5b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d626c7565)](https://php.net)

Laravel 애플리케이션을 위한 포괄적인 패스워드 보안 관리 패키지입니다. 강력한 패스워드 정책, 만료 관리, 휴면 계정 처리 등의 기능을 제공합니다.

주요 기능
-----

[](#주요-기능)

### 🔐 패스워드 복잡도 검증

[](#-패스워드-복잡도-검증)

- 영문 대문자, 소문자, 숫자, 특수문자 조합 규칙
- 2가지 조합 시 10자 이상, 3가지 이상 조합 시 8자 이상
- 커스터마이징 가능한 복잡도 규칙

### 🚫 일반 패턴 차단

[](#-일반-패턴-차단)

- 연속된 숫자/문자 차단 (123456, abcdef 등)
- 키보드 패턴 차단 (qwerty, asdfgh 등)
- 반복 문자 차단 (aaaaaa, 111111 등)
- 생일/전화번호 패턴 차단
- 일반적인 단어 차단 (password, admin 등)

### 👤 개인정보 보호

[](#-개인정보-보호)

- 이름, 이메일, 사용자명 포함 차단
- 대소문자 구분 없는 검사
- 추가 개인정보 필드 커스터마이징

### 📜 패스워드 히스토리 관리

[](#-패스워드-히스토리-관리)

- 최근 N개 패스워드 재사용 방지
- 자동 히스토리 정리
- IP 주소 및 User Agent 기록

### ⏰ 패스워드 만료 관리

[](#-패스워드-만료-관리)

- 분기(90일) 단위 패스워드 변경 강제
- 만료 전 알림 (7일, 3일, 1일 전)
- 만료 시 자동 리다이렉션
- 유예 기간 설정 가능

### 💤 휴면 계정 관리

[](#-휴면-계정-관리)

- 일정 기간 미사용 계정 자동 비활성화
- 비활성화 전 알림 발송 (14일, 7일, 3일 전)
- 비활성화 후 자동 삭제 (설정 가능)
- SoftDeletes 모델의 강제삭제 지원
- 역할 및 이메일 기반 제외 규칙
- Central/Tenant 모델 지원
- Chunk 처리 및 상세 진행 상황 표시

### 🔔 알림 시스템

[](#-알림-시스템)

- 패스워드 만료 알림
- 휴면 계정 알림
- 다중 채널 지원 (메일, 데이터베이스 등)

### 🛠️ 개발자 친화적

[](#️-개발자-친화적)

- Laravel Nova 통합 지원
- 쉬운 모델 통합 (Trait 기반)
- 커스터마이징 가능한 뷰
- 다국어 지원 (한국어, 영어)

요구사항
----

[](#요구사항)

- PHP 8.2 이상
- Laravel 9.x, 10.x, 11.x
- MySQL 5.7+ 또는 PostgreSQL 9.6+

설치
--

[](#설치)

### 1. Composer로 설치

[](#1-composer로-설치)

```
composer require cms-orbit/password-security
```

### 2. 설정 파일 발행

[](#2-설정-파일-발행)

```
php artisan vendor:publish --tag=password-security-config
php artisan vendor:publish --tag=password-security-migrations
php artisan vendor:publish --tag=password-security-views
php artisan vendor:publish --tag=password-security-lang
```

### 3. 마이그레이션 실행

[](#3-마이그레이션-실행)

```
php artisan migrate
```

기본 사용법
------

[](#기본-사용법)

### 1. 모델에 Trait 추가

[](#1-모델에-trait-추가)

패스워드 보안 기능을 사용할 모델에 `HasPasswordSecurity` Trait을 추가합니다.

```
