From a88f2575a0baf7faf38dd1139bb5066ee5b3f413 Mon Sep 17 00:00:00 2001 From: Kabirou ALASSANE Date: Fri, 17 Nov 2023 19:47:36 +0100 Subject: [PATCH] add the List of Predefined Rules in readme as documentation --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bcf7b9b..9076fba 100644 --- a/README.md +++ b/README.md @@ -182,7 +182,7 @@ PHPValidator provides a variety of predefined rules that you can use for data va ``` 18. **Max Length Rule** - Specifies the minimum length of a string field. - + ```php 'username' => 'min_length:8' @@ -197,6 +197,7 @@ In addition to the predefined rules, you can create custom validation rules by i // CustomPasswordRule.php namespace YourNameSpace\Rules; +use BlakvGhost\PHPValidator\Rules\RuleInterface; use BlakvGhost\PHPValidator\LangManager; class CustomPasswordRule implements RuleInterface