Skip to content

Conversation

@henriquemoody
Copy link
Member

  • v::identityCard(string $countryCode)

Validates Identity Card numbers according to the defined country.

v::identityCard('PL')->validate('AYW036733'); // true
v::identityCard('PL')->validate('APH505567'); // true
v::identityCard('PL')->validate('APH 505567'); // false
v::identityCard('PL')->validate('AYW036731'); // false

For now this rule only accepts Polish Identity Card numbers (Dowód Osobisty).


Closes #623

Original-Author: Tomasz Regdos <tomek@regdos.com>.
@henriquemoody henriquemoody merged commit c2eece6 into Respect:master Jan 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant