-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b0c2a7
commit c8c5ff8
Showing
1 changed file
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,43 @@ | ||
# Pouria Valid PHP Library | ||
# Pouria Valid | ||
 | ||
Cartoon image from Pouria vali, an iranian hero ↑↑↑ | ||
|
||
# Introduction | ||
Pouria valid is a lightweight, easy-to-use and powerful library for data validation in PHP | ||
|
||
# Example | ||
```php | ||
<?php | ||
|
||
require "https://raw.githubusercontent.com/mohammadali-arjomand/pouria-valid/main/pouria.php"; | ||
|
||
$pouria = new Pouria($_REQUEST); | ||
$pouria->conditions([ | ||
"name" => [ | ||
REQUIRED, | ||
MINIMUM . 5, | ||
MAXIMUM . 16 | ||
] | ||
]); | ||
|
||
echo $pouria->check ? "Data is valid" : "Data is invalid"; | ||
``` | ||
|
||
# Installation | ||
You can install PouriaValid via ... | ||
## Git | ||
```bash | ||
git clone https://github.com/mohammadali-arjomand/pouria-valid.git | ||
``` | ||
## CDN | ||
```php | ||
require "https://raw.githubusercontent.com/mohammadali-arjomand/pouria-valid/main/pouria.php"; | ||
``` | ||
## Local | ||
[Download latest release]() | ||
|
||
# Documentation | ||
coming soon ... | ||
|
||
# License | ||
MIT License, Copyright (c) 2023 MohammadAli Arjomand |