cable8mm / laravel-validation-kisa-rules
A set of useful Laravel validation password rules for KISA
v1.0.0
2024-03-04 11:28 UTC
Requires
- php: ^8.0
- illuminate/support: ^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^6.23|^7.0|^8.0|^9.0
- phpunit/phpunit: ^9.0|^10.0|^11.0
README
This repository contains a helpful Laravel validation rule for KISA passwords. KISA is an organization dedicated to securing the internet network in South Korea. Major websites operating in South Korea are required to adhere to KISA password standards. Therefore, this is a small library designed to verify passwords according to the KISA standard.
Features
- Implement support for KISA standard validation in Laravel
- Enable easy installation via Composer
Support & Tested
Installation
You can install the package via composer:
composer require cable8mm/laravel-validation-kisa-rules
The package will automatically register itself.
Translations
If you wish to edit the package translations, you can run the following command to publish them into your resources/lang
folder
php artisan vendor:publish --provider="Cable8mm\ValidationKisaRules\ValidationKisaRulesServiceProvider"
Usage
KisaPassword
rule
use Cable8mm\ValidationKisaRules\Rules\KisaPassword; use Illuminate\Http\Request; public function store(Request $request) { $validated = $request->validate([ 'password' => ['required', 'confirmed', new KisaPassword()], ]); }
Testing
composer test
Formatting
composer lint # Modify all files to comply with the PHP coding standards. composer inspect # Inspect all files to ensure compliance with PHP coding standards.
Reference
- KISA password documents : go link
License
The MIT License (MIT). Please see License File for more information.