cable8mm/laravel-validation-kisa-rules
Composer 安装命令:
composer require cable8mm/laravel-validation-kisa-rules
包简介
Laravel validation rules for KISA-compliant passwords.
README 文档
README
Warning
This package is archived and no longer actively maintained.
It was originally created based on password recommendations published by KISA and related Korean security guidelines available at the time of development.
Those recommendations have since been revised, abolished, or are no longer publicly available.
This package is preserved for legacy applications that still require the historical password policy.
Laravel validation rules implementing password requirements recommended by KISA (Korea Internet & Security Agency).
Why this package exists
Many services in South Korea follow password recommendations published by KISA.
Unlike Laravel's built-in Password rule, KISA password requirements are conditional.
| Character Types Used | Minimum Length |
|---|---|
| 1 type | 10 characters |
| 2 or more types | 8 characters |
For example,
| Password | Valid |
|---|---|
aaaaaaaaaa |
✅ |
abcd1234 |
✅ |
abcd!@#$ |
✅ |
abcd123! |
✅ |
aaaaaaaa |
❌ |
Laravel's built-in password validation cannot express these rules.
Password::min(8) ->letters() ->numbers() ->symbols();
This package provides a reusable validation rule implementing KISA recommendations.
new KisaPassword()
Features
- ✅ Implements KISA password recommendations
- ✅ Supports Laravel validation pipeline
- ✅ Translation ready
- ✅ Composer installable
Support & Tested
| PHP | Laravel |
|---|---|
| 8.1 | 10.x |
| 8.2 | 10.x |
| 8.2 | 11.x |
| 8.2 | 12.x |
| 8.3 | 10.x |
| 8.3 | 11.x |
| 8.3 | 12.x |
Installation
composer require cable8mm/laravel-validation-kisa-rules
The package registers itself automatically.
Publishing Translations
php artisan vendor:publish --provider="Cable8mm\ValidationKisaRules\ValidationKisaRulesServiceProvider"
Usage
KisaPassword
use Cable8mm\ValidationKisaRules\Rules\KisaPassword; $request->validate([ 'password' => [ 'required', 'confirmed', new KisaPassword(), ], ]);
Testing
composer test
Formatting
composer lint
Automatically fix coding style issues.
composer inspect
Inspect files without modifying them.
References
- KISA password guideline documents
License
The MIT License (MIT).
See LICENSE.md for more information.
cable8mm/laravel-validation-kisa-rules 适用场景与选型建议
cable8mm/laravel-validation-kisa-rules 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 421 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 03 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cable8mm」 「laravel-validation-kisa-rules」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cable8mm/laravel-validation-kisa-rules 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cable8mm/laravel-validation-kisa-rules 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cable8mm/laravel-validation-kisa-rules 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The package is not a template engine, but you can use it like one to create stub files when needed.
Create a general code specification for building a WMS (Warehouse Management System), and specify parsers and implementation guidelines.
A lightweight PHP library for generating PDF waybills with ease.
This package is able to generate a kind of seed for order sheets and order invoices so you can use it for testing like that
Renew Laravel PHP Facade/Wrapper for the Youtube Data API v3
统计信息
- 总下载量: 421
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-04