PHPackages                             bluedogtraining/avetmiss - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. bluedogtraining/avetmiss

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

bluedogtraining/avetmiss
========================

AVETMISS Validation and Report Generation

4.5.2(4mo ago)458.9k↑11%4[1 issues](https://github.com/bluedogtraining/avetmiss/issues)MITPHPPHP &gt;=5.4.0CI failing

Since Mar 24Pushed 4mo ago8 watchersCompare

[ Source](https://github.com/bluedogtraining/avetmiss)[ Packagist](https://packagist.org/packages/bluedogtraining/avetmiss)[ Docs](https://github.com/bluedogtraining/avetmiss)[ RSS](/packages/bluedogtraining-avetmiss/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (29)Used By (0)

Avetmiss
========

[](#avetmiss)

This library is designed to help with the generation of AVETMISS NAT files.

[![Build Status](https://camo.githubusercontent.com/c218bd1530452a6cb0ab2c02401f5dc01585fe956c26d1d80be57867c65abc9e/68747470733a2f2f7472617669732d63692e6f72672f626c7565646f67747261696e696e672f617665746d6973732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/bluedogtraining/avetmiss)

Install
-------

[](#install)

Via Composer

```
$ composer require bluedogtraining/avetmiss
```

Usage
-----

[](#usage)

The idea behind the library is very simple.

1. Create fieldset with field definitions (or use a bundled fieldset)
2. Initiate a file with the fieldset.
3. Create a row from the file.
4. Populate the row.
5. Add the populated row back to the file.
6. Export the file.

```
use Bdt\Avetmiss\File;
use Bdt\Avetmiss\Nat\V7\Nat120;

// array of student courses, pulled from the database
$studentcourses = DB::getStudentCourses();

// initiate a new nat file
$file = new File(new Nat120);

// loop through the studentcourses and add them to the file
foreach($this->studentcourses as $studentcourse) {

    try {
        $row = $file->createRow();

        $row->set('client_id', $studentcourse->Student->id);
        $row->set('subject_id', $studentcourse->Course->id);
        //...

        $file->writeRow($row);
    } catch(Exception $e) {
        // Display or log any errors.
    }
}

$file->export('nat120.txt');
```

### Extending

[](#extending)

The library comes with preliminary Fieldset definitions for AVETMISS Version 7 NAT files.

You can very easily add your own NAT files if required.

```
$myFieldset = new Fieldset([
    Field::make('date')->name('enrolment_date')->length(8),
    Field::make('numeric')->name('state_id')->length(2)->pad('0')->in(Config::keys('states')),
]);
```

Or own rules.

```
class MyOwnConfig extends Config
{
    protected static $deliveryTypes = [
        10 => 'Classroom-based',
        20 => 'Electronic based',
        30 => 'Employment based',
        40 => 'Other delivery (eg correspondence)',
        90 => 'Not applicable - recognition of prior learning/ recognition of current competency/ credit transfer'
    ];
}
```

### Framework Integration

[](#framework-integration)

#### Laravel 5

[](#laravel-5)

This library comes with a service provider to add rules for validating against AVETMISS NAT fields.

To use this, first add the `Bdt\Avetmiss\Frameworks\Laravel\ValidationServiceProvider` to the `providers` array in `config/app.php`.

```
$validator = Validator::make([
    'my_start_date' => '01022000'
], [
    'my_start_date' => 'avetmiss:nat120,activity_start_date'
]);

$isValid = $validator->passes();
```

You can optionally pass a third boolean parameter to the `avetmiss` rule to enforce a maximum string length.

#### Zend Framework 1

[](#zend-framework-1)

This library comes with a utility for creating Zend Framework 1 validators based on AVETMISS NAT fields.

```
$factory = new Bdt\Avetmiss\Frameworks\Zf1\ValidatorFactory;
$validator = $factory->create('nat120', 'activity_start_date');
$validator->isValid('my_start_date');
```

You can optionally pass a third boolean parameter to the `ValidatorFactory::create` method to enforce a maximum string length.

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Attribution
-----------

[](#attribution)

This library is based upon information provided in the [AVETMISS VET Provider Collection Specifications](http://www.ncver.edu.au/wps/wcm/connect/dd52c92e-46c2-4217-9a21-6135c405f482/Avetmiss-r7-vet-provider-specifications-2578.pdf), which is provided under a [Creative Commons Attribution 3.0 Australia license](http://creativecommons.org/licenses/by/3.0/au/).

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance71

Regular maintenance activity

Popularity36

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 54.4% 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

Every ~172 days

Recently: every ~618 days

Total

26

Last Release

132d ago

Major Versions

1.0.0 → 2.0.02014-03-24

2.0.0 → 3.0.02015-07-01

3.0.8 → 4.0.02018-01-12

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

3.0.0PHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e066a329f68cd574f72ceedd8e8c3ea6f618bbeda443bfa169fac59e02a11548?d=identicon)[bluedogtraining](/maintainers/bluedogtraining)

---

Top Contributors

[![ryan-senn](https://avatars.githubusercontent.com/u/1097394?v=4)](https://github.com/ryan-senn "ryan-senn (68 commits)")[![jwpage](https://avatars.githubusercontent.com/u/52687?v=4)](https://github.com/jwpage "jwpage (38 commits)")[![BethanyMarriott](https://avatars.githubusercontent.com/u/15096744?v=4)](https://github.com/BethanyMarriott "BethanyMarriott (11 commits)")[![JoshSmithCode](https://avatars.githubusercontent.com/u/5952520?v=4)](https://github.com/JoshSmithCode "JoshSmithCode (4 commits)")[![rezashahrokh](https://avatars.githubusercontent.com/u/110792369?v=4)](https://github.com/rezashahrokh "rezashahrokh (3 commits)")[![lance-gilmore-bluedog](https://avatars.githubusercontent.com/u/224886341?v=4)](https://github.com/lance-gilmore-bluedog "lance-gilmore-bluedog (1 commits)")

---

Tags

avetmiss

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bluedogtraining-avetmiss/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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