Skip to content
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

ISO 3166 Country Code Validator #30

Closed
alganet opened this issue Oct 4, 2011 · 4 comments
Closed

ISO 3166 Country Code Validator #30

alganet opened this issue Oct 4, 2011 · 4 comments

Comments

@alganet
Copy link
Member

alganet commented Oct 4, 2011

Validators for the two alphanumeric country code formats defined by ISO 3166:

http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3

Syntax would be v::countryCode();. If some user wants only two or three digit country codes, it can chain validators: v::length(2)->countryCode();.

@cabello
Copy link

cabello commented Oct 4, 2011

I am doing it, just need to install PHPUnit on my machine and we will be done.

@alganet
Copy link
Member Author

alganet commented Oct 4, 2011

@cabello nice!

@alganet alganet closed this as completed Oct 5, 2011
@alganet alganet reopened this Oct 5, 2011
@alganet
Copy link
Member Author

alganet commented May 24, 2012

I've coded this, should be available on the next package.

@alganet alganet closed this as completed May 24, 2012
@cabello
Copy link

cabello commented May 24, 2012

NIce!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants