gordonmurray / match-import-headings
A small class to match cleaned headings on an imported CSV to known column headings
Installs: 56
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/gordonmurray/match-import-headings
Requires (Dev)
- satooshi/php-coveralls: ^1.0
This package is not auto-updated.
Last update: 2025-10-12 00:58:59 UTC
README
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 )