Socrates v1.3.0 (2021-02-06)
This is our biggest release yet and it features a number of new contributors! 🎉
We now support a number of North, South and Central American countries.
Added
- PHP 8 is now supported (#114)
- United States ID validator (#69)
- Canada ID validator (#70)
- Mexican ID validator (#78) @tiagomichaelsousa
- Argentina ID validator (#80) @gheleri
- Chile ID validator (#81) @gheleri
- Uruguay ID validator (#95) @gheleri
- German ID validator (#97) @bofalke
- Peru ID validator (#98) @gheleri
- Ecuador ID validator (#104) @gheleri
- Added string constants with the countries' ISO codes to simplify how the package is used (#107)
- Added a new
getDateOfBirthNative()
method toCitizen
that returns a nativeDateTime
and deprecate the old method (#109)
Removed
- Socrates will no longer try to guess the locale if using Laravel (#108)
- Luxembourg ID validator (#112)
Updated
- Link to official Belgium ID information (#75) @YvesBos
- Improve internal class structure (#88) @bofalke
- Updated
InvalidLengthException
phpdoc (#110) - Improved contribution guide with a tutorial on how to implement a country from scratch! 🎉 (#111)