Skip to content

Commit c88c57d

Browse files
committed
Update README.md
1 parent 6545d90 commit c88c57d

File tree

1 file changed

+47
-40
lines changed

1 file changed

+47
-40
lines changed

README.md

Lines changed: 47 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This package support localization and you can use it for most of the language. <
1616
(If some language didn't support, you can <a href="https://github.com/milwad-dev/laravel-validate/pulls">PR</a> for new language)
1717

1818
# Requirements
19+
1920
***
2021
- ```PHP >= 8.0```
2122
- ```Laravel >= 9.0```
@@ -29,13 +30,15 @@ This package support localization and you can use it for most of the language. <
2930
| 1.7 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: |
3031

3132
# Installation
33+
3234
You can install the package with Composer.
3335

3436
```bash
3537
composer require milwad/laravel-validate
3638
```
3739

3840
# Publish
41+
3942
If you want to publish a lang file for a custom validation message you can run this command in the terminal:
4043

4144
```shell
@@ -51,6 +54,7 @@ php artisan vendor:publish --tag="validate-lang-en"
5154
If you don't know about langs name you can go [Support Languages](#support-languages)
5255

5356
# Usage
57+
5458
You can use `Laravel-Validate Rules` very simply. You can use the `new` keyword before the rule name.
5559

5660
```php
@@ -63,46 +67,46 @@ return [
6367

6468
# Rules
6569

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) |
73-
| 6 | ValidIpAddressIPV6 | Validate ip address IPV6 for ex (2001:db8:3333:4444:5555:6666:7777:8888) |
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 jalali 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) |
105-
| 38 | ValidIranPostalCode | Validate Iran postal code ex (3354355599) |
70+
| # | Rule name | Usage |
71+
|----|----------------------------|--------------------------------------------------------------------------|
72+
| 1 | ValidBitcoinAddress | Validate bitcoin address for ex (1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY) |
73+
| 2 | ValidCapitalCharWithNumber | Validate String for ex (MILWAD-84) |
74+
| 3 | ValidDiscordUsername | Validate username discord for ex (Milwad#2134) |
75+
| 4 | ValidHashtag | Validate hashtag for ex (#milwad) |
76+
| 5 | ValidIpAddressIPV4 | Validate ip address IPV4 for ex (129.144.50.56) |
77+
| 6 | ValidIpAddressIPV6 | Validate ip address IPV6 for ex (2001:db8:3333:4444:5555:6666:7777:8888) |
78+
| 7 | ValidPhoneNumber | Validate phone number for ex (09366000000) |
79+
| 8 | ValidPort | Validate port value for ex (8080) |
80+
| 9 | ValidSlug | Validate slug for ex (milwad-dev) |
81+
| 10 | ValidImei | Validate imei phone for ex (354809104295874) |
82+
| 11 | ValidStrongPassword | Validate password for ex (Milwad123!) |
83+
| 12 | ValidUrl | Validate url for ex (https://www.google.com) |
84+
| 13 | ValidUsername | Validate username for ex (milwad) |
85+
| 14 | ValidUuid | Validate uuid for ex (123e4567-e89b-12d3-a456-426655440000) |
86+
| 15 | ValidHexColor | Validate hex color for ex (#fcba03) |
87+
| 16 | ValidHtmlTag | Validate html tags for ex (``<h1></h1>``) |
88+
| 17 | ValidNationalCard | Validate national card for ex (015016437) |
89+
| 18 | ValidCarNumber | Validate car number for ex (KA01AB1234) |
90+
| 19 | ValidNameDaysWeek | Validate day week for ex (monday) |
91+
| 20 | ValidEvenNumber | Validate number is even for ex (1024) |
92+
| 21 | ValidOddNumber | Validate number is odd for ex (4321) |
93+
| 22 | ValidSlashEndOfString | Validate write slash at the string for ex (milwad/) |
94+
| 23 | ValidCartNumberIran | Validate cart number for ex (1234123412341234) |
95+
| 24 | ValidBase64 | Validate base64 for ex (bWlsd2Fk) |
96+
| 25 | ValidJwt | Validate jwt |
97+
| 26 | ValidJalaliDate | Validate jalali date for ex (1384/8/25) |
98+
| 27 | ValidDuplicateCharacter | Validate duplicate characters for ex (1,2,3,4,5,6,7,8,9) |
99+
| 28 | ValidPattern | Validate texts with specific pattern 🔥 for ex (4444-4444-4444) |
100+
| 29 | ValidDuplicate | Validate duplicate string, numbers for ex (1123456) |
101+
| 30 | ValidUlid | Validate ulid for ex (01ARZ3NDEKTSV4RRFFQ69G5FAV) |
102+
| 31 | ValidDomain | Validate domain name for ex (github.com) |
103+
| 32 | ValidCamelCase | Validate camel case for ex (milwadDev) |
104+
| 33 | ValidPascalCase | Validate pascal case for ex (MilwadDev) |
105+
| 34 | ValidKebabCase | Validate kebab case for ex (milwad-dev) |
106+
| 35 | ValidSnakeCase | Validate snake case for ex (milwad_dev) |
107+
| 36 | ValidVatId | Validate european VAT ID ex (EL123456789123) |
108+
| 37 | ValidIban | Validate IBAN ex (IR062960000000100324200001) |
109+
| 38 | ValidIranPostalCode | Validate Iran postal code ex (3354355599) |
106110

107111
# Rules
108112

@@ -173,14 +177,17 @@ Also, you can make <a href="https://github.com/milwad-dev/laravel-validate/pulls
173177
- [x] Chinese (zh_CN)
174178

175179
# License
180+
176181
* This package is created and modified by <a href="https://github.com/milwad-dev" target="_blank">Milwad Khosravi</a> for Laravel upper more than 9 and is released under the MIT License.
177182

178183
# Contributing
184+
179185
This project exists thanks to all the people who contribute. [CONTRIBUTING](https://github.com/milwad-dev/laravel-validate/graphs/contributors)
180186

181187
<a href="https://github.com/milwad-dev/laravel-validate/graphs/contributors"><img src="https://opencollective.com/laravel-validate/contributors.svg?width=890&button=false" /></a>
182188

183189
# Security
190+
184191
If you've found a bug regarding security please mail [[email protected]](mailto:[email protected]) instead of using the issue tracker.
185192

186193
## Star History

0 commit comments

Comments
 (0)