We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 955c601 commit a035b48Copy full SHA for a035b48
README.md
@@ -1,4 +1,4 @@
1
-# sg-nric
+# sg-nric: PHP Singapore NRIC/FIN validator
2
3
PHP Singapore NRIC (National Registration Identity Card) or FIN (Foreign Identification Number) validator package
4
@@ -17,14 +17,22 @@ composer require makowskid/sg-nric
17
## Usage
18
19
```bash
20
-$validator = new \Makowskid\SgNric\SgNric();
21
22
-if($validator->isNricValid($theNric)) ..
+use Makowskid\SgNric\SgNric;
23
24
-//or
+$validator = new SgNric();
25
26
-if($validatator->isFinValid($theNric)) ..
+if ($validator->isNricValid($theNric)) {
+ // NRIC is valid
27
+ // Your code here...
28
+}
29
30
+// OR
31
+
32
+if ($validator->isFinValid($theFin)) {
33
+ // FIN is valid
34
35
36
37
```
38
0 commit comments