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 today

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

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

2286d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55eed7400c452edf7e7adfa4f1c6676b65b5ce1867fff6bddcb80b1bb45360af?d=identicon)[edgrosvenor](/maintainers/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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M210](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M858](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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