Comments (7)
Well, if it helps, I can add to this issue the ones that I find. I think official (government) links should be preferable, but any reference would be preferable to none.
- Portugal: https://www.autenticacao.gov.pt/documents/20126/115760/Valida%C3%A7%C3%A3o+de+N%C3%BAmero+de+Documento+do+Cart%C3%A3o+de+Cidad%C3%A3o.pdf/bdc4eb37-7316-3ff4-164a-f869382b7053
- Spain: http://www.interior.gob.es/web/servicios-al-ciudadano/dni/calculo-del-digito-de-control-del-nif-nie
from socrates.
Links for the Italian documentation:
-
Tax code validation is found in the Italy's Ministry of Finance Decree of 12/03/1974 n. 2227 (online version and wikipedia)
-
List of region codes in a web archive
from socrates.
This is something we thought about since the initial concept of this package.
However, we soon found out that most countries have a very poor - or hard to find - official documentation, such that most algorithms were not found in any official sources.
@JoaoFSCruz what do you think about this? At first, we thought of even documenting how every ID roughly works.
from socrates.
Maybe we should specify what we based each country's implementation on. It might even help uncover mistakes. Although I no longer remember the sources I used.
from socrates.
@SLourenco where do you feel this would make more sense? A markdown file, or a docblock in the Validation class itself?
from socrates.
I think either option is fine.
from socrates.
Documentation links for belgium were referenced in the java port:
reducktion/socrates-java#32
from socrates.
Related Issues (20)
- Fix & standardize Validation tests across all countries HOT 1
- French special month codes HOT 1
- France Metropolitan Lyon Region Validation HOT 7
- [v1.3.0] Implement Mexico π²π½
- Luxembourg ID validation HOT 4
- [v1.3.0] Implement Argentina ID π¦π· (CUIL-CUIT) validator HOT 1
- [v1.3.0] Implement Chile ID π¨π± (RUT) validator HOT 2
- [v1.3.0] Incorrect ID validation for Belgium. HOT 5
- [v1.3.0] Remove Laravel framework detection
- [v1.3.0] Create country constants
- [v1.3.0] Make Gender.php and Countries.php abstract HOT 1
- [v2.0.0] Remove Carbon dependency HOT 5
- Implement South Africa πΏπ¦ HOT 2
- [v1.3.0] Implement Uruguay ID πΊπΎ (CI) validator
- [v1.3.0] Implement Peru ID π΅πͺ (CUI) validator
- [v1.3.0] Improve contribution guidelines
- [v1.3.0] Improve PHPDoc on InvalidLengthException
- [v1.3.0] Implement Ecuador ID πͺπ¨ (CI) validator
- [v1.3.0] Deprecate Carbon instance returning methods
- Implement Luxembourg π±πΊ
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socrates.