PHPackages                             gordonmurray/match-import-headings - 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. gordonmurray/match-import-headings

ActiveLibrary

gordonmurray/match-import-headings
==================================

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

156PHP

Since Feb 25Pushed 9y agoCompare

[ Source](https://github.com/gordonmurray/match-import-headings)[ Packagist](https://packagist.org/packages/gordonmurray/match-import-headings)[ RSS](/packages/gordonmurray-match-import-headings/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Match CSV Import headings
=========================

[](#match-csv-import-headings)

[![Build Status](https://camo.githubusercontent.com/d3d6fe361c5a145817b2c3224682d2d070215249e1b69e877ad4c7c2ffa139bf/68747470733a2f2f7472617669732d63692e6f72672f676f72646f6e6d75727261792f6d617463682d696d706f72742d68656164696e67732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gordonmurray/match-import-headings) [![Coverage Status](https://camo.githubusercontent.com/bda94f92c7a6a3f8383140b38a9541ddee997a8925774ce15008467521f707f9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f676f72646f6e6d75727261792f6d617463682d696d706f72742d68656164696e67732f62616467652e7376673f6272616e63683d6d6173746572)](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:
-----------------------

[](#column-headings-before)

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

column headings after:
----------------------

[](#column-headings-after)

Array ( \[value\] =&gt; fname \[match\] =&gt; first name )

Array ( \[value\] =&gt; middle name \[match\] =&gt; middle name )

Array ( \[value\] =&gt; surname \[match\] =&gt; last name )

Array ( \[value\] =&gt; birth date \[match\] =&gt; date of birth )

Array ( \[value\] =&gt; position \[match\] =&gt; job position )

Array ( \[value\] =&gt; orgname \[match\] =&gt; organisation )

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ef285feda5e1007c3816e4dd155059f05d32fa75dbe10a300e96572c88e1331?d=identicon)[gordonmurray](/maintainers/gordonmurray)

---

Top Contributors

[![gordonmurray](https://avatars.githubusercontent.com/u/56556?v=4)](https://github.com/gordonmurray "gordonmurray (18 commits)")

---

Tags

csv-importdata-cleaningphp5-6php7

### Embed Badge

![Health badge](/badges/gordonmurray-match-import-headings/health.svg)

```
[![Health](https://phpackages.com/badges/gordonmurray-match-import-headings/health.svg)](https://phpackages.com/packages/gordonmurray-match-import-headings)
```

PHPackages © 2026

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