Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadali-arjomand committed Jul 28, 2023
1 parent 8b0c2a7 commit c8c5ff8
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@
# Pouria Valid PHP Library
# Pouria Valid
![Pouria vali](https://s29.picofile.com/file/8466457818/poura_valid.jpg)
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

0 comments on commit c8c5ff8

Please sign in to comment.