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)015[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 yesterday

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 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

2385d 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

[illuminate/pagination

The Illuminate Pagination package.

12234.6M1.1k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9350.2M310](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.8M410](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.7M145](/packages/illuminate-cookie)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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