Skip to content

Update readme: add strict parameter to check and isValid #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,20 @@ try {
}
```

## Strict mode

If you want to use a more strict method (without normalizing TIN number, that is, the raw TIN number) use strict parameter in check or isValid functions this way (See https://github.com/loophp/tin/pull/39):

```
TIN::fromSlug('be7110.2512345')->check(true);
```

```
$bool = TIN::fromSlug('be7110.2512345')->isValid(true);
```
In this case, both examples will not validate raw TIN number.


## Installation

`composer require loophp/tin`
Expand Down