PHPackages                             edgrosvenor/column-classifier - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. edgrosvenor/column-classifier

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

edgrosvenor/column-classifier
=============================

Laravel package that helps identify what type of data is held in a collection

1.0(6y ago)011[1 issues](https://github.com/edgrosvenor/column-classifier/issues)[4 PRs](https://github.com/edgrosvenor/column-classifier/pulls)1MITPHP

Since Feb 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/edgrosvenor/column-classifier)[ Packagist](https://packagist.org/packages/edgrosvenor/column-classifier)[ RSS](/packages/edgrosvenor-column-classifier/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (3)Versions (6)Used By (1)

Column Classifier
=================

[](#column-classifier)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9d56d5ea5a3b46a90c38d4c8da17783d9ca5cadb4ec06539b6638a4895646233/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656467726f7376656e6f722f636f6c756d6e2d636c61737369666965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/edgrosvenor/column-classifier)[![ChipperCI](https://camo.githubusercontent.com/ea30abbc1376e5c69aabd00798036fa6098c2e87fe9ac4ff9a4f2492759152ea/68747470733a2f2f6170702e6368697070657263692e636f6d2f70726f6a656374732f64633366336234392d323533332d343934392d386238392d3637376332313737633061342f7374617475732f6d6173746572)](https://camo.githubusercontent.com/ea30abbc1376e5c69aabd00798036fa6098c2e87fe9ac4ff9a4f2492759152ea/68747470733a2f2f6170702e6368697070657263692e636f6d2f70726f6a656374732f64633366336234392d323533332d343934392d386238392d3637376332313737633061342f7374617475732f6d6173746572)[![StyleCI](https://camo.githubusercontent.com/637c77c81bd1827418628ab0083c92949db17ac6c01f3b6710e0db7eb94e6a90/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3233383237313835322f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/238271852)

A Laravel package that takes a collection of data and attempts to identify what kind of data it is. It's kind of designed to meet my own specific needs, but I'll happily accept pull requests and suggestions to make it better if others want to use it.

### Installation

[](#installation)

`composer require edgrosvenor/column-classifier`

### Usage

[](#usage)

```
use ColumnClassifier\Classifier;

$classify = new Classifier(collect(['this', 'that', 'the other thing']));

$data_type = $classify->execute();
```

This will return one of the following: first\_name, last\_name, full\_name, phone, email, city, state, state\_abbr, zip\_code, country, country\_code, currency, company, job\_title, sentence, paragraph, html

### Use Cases

[](#use-cases)

I use this to help me determine which Faker method makes the most sense when automatically creating model factories. I also use it to help me parse user-uploaded spreadsheets of data without knowing what type of data is in each column. I also use it to help me keep a contacts database up to date based on changes to HTML directories.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2340d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1053395?v=4)[Ed Grosvenor](/maintainers/edgrosvenor)[@edgrosvenor](https://github.com/edgrosvenor)

---

Top Contributors

[![edgrosvenor](https://avatars.githubusercontent.com/u/1053395?v=4)](https://github.com/edgrosvenor "edgrosvenor (6 commits)")

### Embed Badge

![Health badge](/badges/edgrosvenor-column-classifier/health.svg)

```
[![Health](https://phpackages.com/badges/edgrosvenor-column-classifier/health.svg)](https://phpackages.com/packages/edgrosvenor-column-classifier)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M280](/packages/illuminate-pipeline)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.6M373](/packages/illuminate-redis)

PHPackages © 2026

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