gordonmurray/match-import-headings

A small class to match cleaned headings on an imported CSV to known column headings

dev-master 2017-02-25 12:57 UTC

This package is not auto-updated.

Last update: 2024-05-25 18:04:44 UTC


README

Build Status Coverage Status

A class to match cleaned column headings on an imported CSV to known column headings. Headings are matched based on direct text match and known synonyms.

column headings before:

'fname','middle name','surname','birth date','position','orgname'

column headings after:

Array ( [value] => fname [match] => first name )

Array ( [value] => middle name [match] => middle name )

Array ( [value] => surname [match] => last name )

Array ( [value] => birth date [match] => date of birth )

Array ( [value] => position [match] => job position )

Array ( [value] => orgname [match] => organisation )