@@ -62,52 +62,54 @@ return [
6262```
6363
6464# Rules
65- | # | Rule name | Usage |
66- | -----| ----------------------------| -------------------------------------------------------------------------|
67- | 1 | ValidBitcoinAddress | Validate bitcoin address for ex (1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY) |
68- | 2 | ValidCapitalCharWithNumber | Validate String for ex (MILWAD-84) |
69- | 3 | ValidDiscordUsername | Validate username discord for ex (Milwad #2134 ) |
70- | 4 | ValidHashtag | Validate hashtag for ex (#milwad) |
71- | 5 | ValidIpAddressIPV4 | Validate ip address IPV4 for ex (129.144.50.56) |
65+
66+ | # | Rule name | Usage |
67+ | -----| ----------------------------| --------------------------------------------------------------------------|
68+ | 1 | ValidBitcoinAddress | Validate bitcoin address for ex (1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY) |
69+ | 2 | ValidCapitalCharWithNumber | Validate String for ex (MILWAD-84) |
70+ | 3 | ValidDiscordUsername | Validate username discord for ex (Milwad #2134 ) |
71+ | 4 | ValidHashtag | Validate hashtag for ex (#milwad) |
72+ | 5 | ValidIpAddressIPV4 | Validate ip address IPV4 for ex (129.144.50.56) |
7273| 6 | ValidIpAddressIPV6 | Validate ip address IPV6 for ex (2001:db8:3333:4444:5555:6666:7777:8888) |
73- | 7 | ValidPhoneNumber | Validate phone number for ex (09366000000) |
74- | 8 | ValidPort | Validate port value for ex (8080) |
75- | 9 | ValidSlug | Validate slug for ex (milwad-dev) |
76- | 10 | ValidImei | Validate imei phone for ex (354809104295874) |
77- | 11 | ValidStrongPassword | Validate password for ex (Milwad123!) |
78- | 12 | ValidUrl | Validate url for ex (https://www.google.com) |
79- | 13 | ValidUsername | Validate username for ex (milwad) |
80- | 14 | ValidUuid | Validate uuid for ex (123e4567-e89b-12d3-a456-426655440000) |
81- | 15 | ValidHexColor | Validate hex color for ex (#fcba03) |
82- | 16 | ValidHtmlTag | Validate html tags for ex (`` <h1></h1> `` ) |
83- | 17 | ValidNationalCard | Validate national card for ex (015016437) |
84- | 18 | ValidCarNumber | Validate car number for ex (KA01AB1234) |
85- | 19 | ValidNameDaysWeek | Validate day week for ex (monday) |
86- | 20 | ValidEvenNumber | Validate number is even for ex (1024) |
87- | 21 | ValidOddNumber | Validate number is odd for ex (4321) |
88- | 22 | ValidSlashEndOfString | Validate write slash at the string for ex (milwad/) |
89- | 23 | ValidCartNumberIran | Validate cart number for ex (1234123412341234) |
90- | 24 | ValidBase64 | Validate base64 for ex (bWlsd2Fk) |
91- | 25 | ValidJwt | Validate jwt |
92- | 26 | ValidJalaliDate | Validate jajali date for ex (1384/8/25) |
93- | 27 | ValidDuplicateCharacter | Validate duplicate characters for ex (1,2,3,4,5,6,7,8,9) |
94- | 28 | ValidPattern | Validate texts with specific pattern 🔥 for ex (4444-4444-4444) |
95- | 29 | ValidDuplicate | Validate duplicate string, numbers for ex (1123456) |
96- | 30 | ValidUlid | Validate ulid for ex (01ARZ3NDEKTSV4RRFFQ69G5FAV) |
97- | 31 | ValidDomain | Validate domain name for ex (github.com) |
98- | 32 | ValidCamelCase | Validate camel case for ex (milwadDev) |
99- | 33 | ValidPascalCase | Validate pascal case for ex (MilwadDev) |
100- | 34 | ValidKebabCase | Validate kebab case for ex (milwad-dev) |
101- | 35 | ValidSnakeCase | Validate snake case for ex (milwad_dev) |
102- | 36 | ValidVatId | Validate european VAT ID ex (EL123456789123) |
103- | 37 | ValidIban | Validate IBAN ex (IR062960000000100324200001) |
74+ | 7 | ValidPhoneNumber | Validate phone number for ex (09366000000) |
75+ | 8 | ValidPort | Validate port value for ex (8080) |
76+ | 9 | ValidSlug | Validate slug for ex (milwad-dev) |
77+ | 10 | ValidImei | Validate imei phone for ex (354809104295874) |
78+ | 11 | ValidStrongPassword | Validate password for ex (Milwad123!) |
79+ | 12 | ValidUrl | Validate url for ex (https://www.google.com) |
80+ | 13 | ValidUsername | Validate username for ex (milwad) |
81+ | 14 | ValidUuid | Validate uuid for ex (123e4567-e89b-12d3-a456-426655440000) |
82+ | 15 | ValidHexColor | Validate hex color for ex (#fcba03) |
83+ | 16 | ValidHtmlTag | Validate html tags for ex (`` <h1></h1> `` ) |
84+ | 17 | ValidNationalCard | Validate national card for ex (015016437) |
85+ | 18 | ValidCarNumber | Validate car number for ex (KA01AB1234) |
86+ | 19 | ValidNameDaysWeek | Validate day week for ex (monday) |
87+ | 20 | ValidEvenNumber | Validate number is even for ex (1024) |
88+ | 21 | ValidOddNumber | Validate number is odd for ex (4321) |
89+ | 22 | ValidSlashEndOfString | Validate write slash at the string for ex (milwad/) |
90+ | 23 | ValidCartNumberIran | Validate cart number for ex (1234123412341234) |
91+ | 24 | ValidBase64 | Validate base64 for ex (bWlsd2Fk) |
92+ | 25 | ValidJwt | Validate jwt |
93+ | 26 | ValidJalaliDate | Validate jajali date for ex (1384/8/25) |
94+ | 27 | ValidDuplicateCharacter | Validate duplicate characters for ex (1,2,3,4,5,6,7,8,9) |
95+ | 28 | ValidPattern | Validate texts with specific pattern 🔥 for ex (4444-4444-4444) |
96+ | 29 | ValidDuplicate | Validate duplicate string, numbers for ex (1123456) |
97+ | 30 | ValidUlid | Validate ulid for ex (01ARZ3NDEKTSV4RRFFQ69G5FAV) |
98+ | 31 | ValidDomain | Validate domain name for ex (github.com) |
99+ | 32 | ValidCamelCase | Validate camel case for ex (milwadDev) |
100+ | 33 | ValidPascalCase | Validate pascal case for ex (MilwadDev) |
101+ | 34 | ValidKebabCase | Validate kebab case for ex (milwad-dev) |
102+ | 35 | ValidSnakeCase | Validate snake case for ex (milwad_dev) |
103+ | 36 | ValidVatId | Validate european VAT ID ex (EL123456789123) |
104+ | 37 | ValidIban | Validate IBAN ex (IR062960000000100324200001) |
104105
105106# Rules
106107
107108### ValidPattern
108109
109110Sometimes you need to validate text with pattern, For example you want to validate a text like (4444-4444-4444).
110- If you want to check the length of text is seperator after ``` - ``` is 4, You can use this Rule:
111+ If you want to check the length of text is seperator after ` - ` is 4, You can use this Rule:
112+
111113``` php
112114use Milwad\LaravelValidate\Rules\ValidPattern;
113115
@@ -116,6 +118,18 @@ return [
116118];
117119```
118120
121+ ### ValidIban
122+
123+ Sometimes you need to validate Iban(International Bank Account Number) code.You can use ` ValidIban ` rule:
124+
125+ ``` php
126+ use Milwad\LaravelValidate\Rules\ValidIban;
127+
128+ return [
129+ 'iban' => ['required', new ValidIban()], // iban => SC74MCBL01031234567890123456USD
130+ ];
131+ ```
132+
119133<a name =" support-languages " ></a >
120134# Support Languages
121135
0 commit comments