Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mugotech authored May 22, 2024
1 parent 5b61f45 commit 85c6250
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,22 @@
# sa-id-number-validation-php
South African ID number Validation PHP

A PHP Trait with South African ID number validation.

# Usage
```
use App\Validations\SaIdNumberVerification;
class Yourclass {
use SaIdNumberVerification;
public function validateId($idNumber) {
if ($this->validateSouthAfricanId($idNumber){
echo "ID number valid!";
}
}
}
```

Don't forget to update the namespace.

0 comments on commit 85c6250

Please sign in to comment.