PHPackages                             tohmua/slk581 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tohmua/slk581

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tohmua/slk581
=============

Generate SLK581 codes

v0.1.0(9y ago)013MITPHPPHP ^5.6 || ^7.0

Since Nov 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Tohmua/SLK581)[ Packagist](https://packagist.org/packages/tohmua/slk581)[ RSS](/packages/tohmua-slk581/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/79e75a147af7f1cfa8eb70acccc8ad4340497e349a133d918fcee6eebbbc9f02/68747470733a2f2f7472617669732d63692e6f72672f546f686d75612f534c4b3538312e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Tohmua/SLK581)

SLK581
======

[](#slk581)

This project generates SLK581 Codes. More info on SLK581 codes can be found [here](https://ataps-mds.com/mds/user-documentation/slk/). More detailed notes on the specification can be found [here](http://meteor.aihw.gov.au/content/index.phtml/itemId/349510).

### Install

[](#install)

`composer require tohmua/slk581`

### Use

[](#use)

```
$slk581 = new SLK581\SLK581();

$slk581->generate(
    $firstName   = 'firstname',
    $lastName    = 'lastname',
    $dateOfBirth = '11/11/2016', // must be formatted dd/mm/yyyy
    $gender      = 2             // see documentation or 'src/Fields/Interfaces/Gender.php' for gender codes
); // ASNIR111120162
```

### Errors

[](#errors)

`generate()` method returns a string of a valid SLK581 code on success or `FLASE` on Failure.

To get the error message you can call the `errorMessage()` method.

```
$slk581 = new SLK581\SLK581();

$slk581->generate(
    $firstName   = 'firstname',
    $lastName    = 'lastname',
    $dateOfBirth = '',
    $gender      = 2
); // (bool) FALSE

$slk581->errorMessage(); //SLK581 Error: No Date of Birth supplied. This is required.
```

### Tests

[](#tests)

To run: `composer test`

The code coverage report can be found in tests/\_output however this is git ignored but it will be generated automatically for you when you run the test suite.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3506d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ce79df0056efb1bb9aa3eb36ed02d188af7cdfd2473647162dbf299df47ccb1?d=identicon)[Tohmua](/maintainers/Tohmua)

---

Top Contributors

[![Tohmua](https://avatars.githubusercontent.com/u/6814384?v=4)](https://github.com/Tohmua "Tohmua (1 commits)")

---

Tags

SLK581

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tohmua-slk581/health.svg)

```
[![Health](https://phpackages.com/badges/tohmua-slk581/health.svg)](https://phpackages.com/packages/tohmua-slk581)
```

###  Alternatives

[cocur/domain

Check domain name availability and WHOIS

691.3k](/packages/cocur-domain)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
