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

Using respect validation? #4

Open
royopa opened this issue Aug 22, 2016 · 1 comment
Open

Using respect validation? #4

royopa opened this issue Aug 22, 2016 · 1 comment
Labels

Comments

@royopa
Copy link

royopa commented Aug 22, 2016

What do you think about use the Respect Validation Library as a requirement for this project?
Example:
Maybe use the Respect Validation as a requirement in composer and return a exception when
v::cpf()->validate('02650306461'); return false.

https://github.com/Respect/Validation/blob/master/docs/Cnh.md
https://github.com/Respect/Validation/blob/master/docs/Cpf.md
https://github.com/Respect/Validation/blob/master/docs/Cnpj.md

@tonicospinelli
Copy link
Member

I thinking about it and Respect\Validation component is awesome.

So, I have doubts about responsibility in this case, I don't know if documents validation must be done from Respect\Validation or maybe this document component integrates with Respect\Validation.

Maybe move Modulo11 to Respect\Validation, because this class has a configurable rule to validate numbers.

ping @alganet @augustohp

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

No branches or pull requests

2 participants