Skip to content
personnummerPublic

About

Validate Swedish personal identity numbers

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

6 stars

Watchers

3 watching

Forks

Latest commit

 

History

83 Commits

Folders and files

Repository files navigation

personnummer Build Status

Validate personal identity numbers.

Installation

Add this to your Gemfile

gem 'personnummer', :git => 'https://github.com/personnummer/ruby.git'

Then run bundle install

Example

require 'personnummer'

puts Personnummer.valid?("8507099805")
# => True

See test/test_personnummer.rb for more examples.

In memoriam

Fredrik "Frozzare" Forsmo (1991-2026) was the initiator, co-founder and a core contributor of the personnummer project. This library carries his work. He is missed.

License

MIT

About

Validate Swedish personal identity numbers

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

6 stars

Watchers

3 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages