Download the PHP package devsmo/php-hetu without Composer
On this page you can find all versions of the php package devsmo/php-hetu. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
All versions of php-hetu with dependencies
Informations about the package php-hetu
Finnish Social Security number validator.
This simple class validates social security numbers and provides methods for checking birthdate, age and gender based on the 'hetu'.
- PHP >= 5.4
The recommended way is to install the lib through Composer.
Or you can add this to your composer.json
The hetu class creates an immutable value object. You can initialize the object in two ways:
Or if you want to catch possible errors:
The class has three methods:
Feel free to contribute! Just create a new issue or a new pull request.
This library is released under the MIT License.