byrokrat/id
byrokrat/id is a PHP library for Swedish identity numbers. It provides value objects to parse, validate, format, and compare personal identity numbers, coordination numbers, and organization numbers, including checksum verification, birth date handling, and age calculation.
personnummer/samordningsnummer) and corporation/organization identity numbers. It fits best as a small domain-layer dependency behind an application-owned adapter, not as a framework-wide integration. In Laravel, it would be consumed by form requests, validation rules, casts, and domain value objects rather than by controllers or Eloquent directly.PersonalIdentity and CorporationIdentity value objects or validation contracts, then delegate to byrokrat/id inside the adapter.How can I help you explore Laravel packages today?