Skip to content

Commit

Permalink
Detailing with happy usage
Browse files Browse the repository at this point in the history
  • Loading branch information
moviet authored Dec 14, 2018
1 parent e185fa7 commit c3797aa
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ composer require "moviet/panic-validator"
$request = $_POST['String'];

$post = $panic->case($request)
->rule(':alphaNumSpace')
->rule(':alNumSpace')
->throw(['Do not burn your finger, invalid !!']);
```

Expand Down Expand Up @@ -108,8 +108,12 @@ composer require "moviet/panic-validator"
$validPass = $panic->case($_POST['password'])
->auth(8)
->throw(['Password minimum 8 characters']);

$tokenLog = $panic->case($_POST['csrf'])
->rule(':alphaNum')
->get();

$data = [$validUser, $validPass];
$data = [$validUser, $validPass, $tokenLog];

if ($panic->confirm($data) !== false) {

Expand Down Expand Up @@ -154,12 +158,15 @@ composer require "moviet/panic-validator"
->rule(':int')
->throw(['Your token of course, invalid !!']);

$validate = [$product, $tokenId];
$validate = [$product, $tokenId];

$trust = $panic->trust([$_GET], $validate);

$trust[0] // Equivalent $product
$trust[1] // Equivalent $tokenId
$entry = $panic->trust($_GET, $validate);

// to retrieve data, please use array

if ($entry !== false)
$entry[0] // Equivalent $product
$entry[1] // Equivalent $tokenId
Next Next...
```

Expand Down Expand Up @@ -216,7 +223,7 @@ composer require "moviet/panic-validator"
// $_POST['password']
}

// Wrong Output => Do not type password, please use Abcde !!
// Print $data => Do not type password, please use Abcde !!
```

### Sanitize Html
Expand Down

0 comments on commit c3797aa

Please # to comment.