Skip to content

Commit

Permalink
add the List of Predefined Rules in readme as documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
BlakvGhost committed Nov 17, 2023
1 parent 9d5894c commit a88f257
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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
Expand Down

0 comments on commit a88f257

Please sign in to comment.