organisationsnummer/organisationsnummer

Validate Swedish Organisationsnummer

Fund package maintenance!
Open Collective

2.1.0 2024-02-20 20:20 UTC

This package is auto-updated.

Last update: 2024-05-22 22:41:54 UTC


README

Test

Validate Swedish organization numbers.

Follows version 1.1 of the specification.

Install the package:

composer require organisationsnummer/organisationsnummer

Example

use Organisationsnummer\Organisationsnummer;

Organisationsnummer::valid('202100-5489');
// => true

See OrganisationsnummerTest.php for more examples.

License

MIT