Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gordonmurray/match-import-headings
A class to match cleaned column headings on an imported CSV to known column headings
https://github.com/gordonmurray/match-import-headings
csv-import data-cleaning php5-6 php7
Last synced: 23 days ago
JSON representation
A class to match cleaned column headings on an imported CSV to known column headings
- Host: GitHub
- URL: https://github.com/gordonmurray/match-import-headings
- Owner: gordonmurray
- License: mit
- Created: 2017-02-19T11:47:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-25T12:57:38.000Z (almost 8 years ago)
- Last Synced: 2024-11-30T08:42:35.060Z (28 days ago)
- Topics: csv-import, data-cleaning, php5-6, php7
- Language: PHP
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Match CSV Import headings
[![Build Status](https://travis-ci.org/gordonmurray/match-import-headings.svg?branch=master)](https://travis-ci.org/gordonmurray/match-import-headings) [![Coverage Status](https://coveralls.io/repos/github/gordonmurray/match-import-headings/badge.svg?branch=master)](https://coveralls.io/github/gordonmurray/match-import-headings?branch=master)
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
)