PHPackages                             ballstatecber/cber-data-grabber - 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. ballstatecber/cber-data-grabber

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

ballstatecber/cber-data-grabber
===============================

CBER Data Grabber

021[1 issues](https://github.com/BallStateCBER/cber-data-grabber/issues)PHP

Since Aug 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/BallStateCBER/cber-data-grabber)[ Packagist](https://packagist.org/packages/ballstatecber/cber-data-grabber)[ RSS](/packages/ballstatecber-cber-data-grabber/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

CBER Data Grabber
=================

[](#cber-data-grabber)

A set of classes used by the [Ball State University](http://bsu.edu) [Center for Business and Economic Research](http://cberdata.org) [County Profiles](http://profiles.cberdata.org) website for pulling data from US federal data APIs.

Installing via [Composer](https://getcomposer.org/)
---------------------------------------------------

[](#installing-via-composer)

```
composer require ballstatecber/cber-data-grabber:dev-master

```

ACS Updater (American Community Survey, US Census Bureau)
---------------------------------------------------------

[](#acs-updater-american-community-survey-us-census-bureau)

Make sure you first have a [US Census Bureau API Key](http://api.census.gov/data/key_signup.html).

Getting processed data and saving it to a CSV file:

```
ACSUpdater::setAPIKey('api key goes here');
$year = '2013';
$stateId = '18'; // Indiana
$category = ACSUpdater::$POPULATION_AGE;
$processedData = ACSUpdater::getCountyData($year, $stateId, $category);
$fileName = date('Y-m-d').'_processed_county_'.$categoryName.'_'.$stateId.'_'.$year.'-00-00.csv';
ACSUpdater::writeProcessedCSV($processedData, $fileName);

```

Getting raw data and saving it to a CSV file:

```
ACSUpdater::setAPIKey('api key goes here');
$year = '2013';
$stateId = '18'; // Indiana
$category = ACSUpdater::$POPULATION_AGE;
$rawData = ACSUpdater::getRawCountyData($year, $stateId, $category);
$fileName = date('Y-m-d').'_raw_county_'.$categoryName.'_data_'.$stateId.'_'.$year.'-00-00.csv';
ACSUpdater::writeRawCSV($rawData, $fileName, $map);

```

CSV files are saved in the same directory that executes this script.

Available data categories:

- `ACSUpdater::$POPULATION_AGE`
- `ACSUpdater::$HOUSEHOLD_INCOME`
- `ACSUpdater::$ETHNIC_MAKEUP`
- `ACSUpdater::$EDUCATIONAL_ATTAINMENT`
- `ACSUpdater::$INEQUALITY_INDEX`

BEA Updater (Bureau of Economic Analysis)
-----------------------------------------

[](#bea-updater-bureau-of-economic-analysis)

Example for saving data to a CSV file:

```
BEAUpdater::setAPIKey('api key goes here');
$year = '2014';
$stateId = '18'; // Indiana
BEAUpdater::updateAllCountyData($year, $stateId);
BEAUpdater::updateCountyData($year, $stateID, BEAUpdater::$WAGES, true);

```

BLS Updater (Bureau of Labor Statistics)
----------------------------------------

[](#bls-updater-bureau-of-labor-statistics)

Example for saving data to a CSV file:

```
$endYear = '2013';
$stateID = '18'; // Indiana
BLSUpdater::updateAllCountyData($stateID, $endYear);

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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/8c85adcea1d9b9f8f2d3062fa6b312aa0759b09bf8613e9fad84e21d169b3398?d=identicon)[PhantomWatson](/maintainers/PhantomWatson)

![](https://www.gravatar.com/avatar/7ce73b3fde1e2f9d6b066f6002344120ddc3fc68757e9589f15c5f2d091d3bc9?d=identicon)[ericadeefox](/maintainers/ericadeefox)

---

Top Contributors

[![PhantomWatson](https://avatars.githubusercontent.com/u/1965565?v=4)](https://github.com/PhantomWatson "PhantomWatson (61 commits)")

### Embed Badge

![Health badge](/badges/ballstatecber-cber-data-grabber/health.svg)

```
[![Health](https://phpackages.com/badges/ballstatecber-cber-data-grabber/health.svg)](https://phpackages.com/packages/ballstatecber-cber-data-grabber)
```

###  Alternatives

[symfony/polyfill-uuid

Symfony polyfill for uuid functions

688335.4M63](/packages/symfony-polyfill-uuid)[spatie/error-solutions

This is my package error-solutions

6853.2M11](/packages/spatie-error-solutions)[phpflo/phpflo

Flow-based programming for PHP

2173.3k4](/packages/phpflo-phpflo)[eftec/autoloadone

AutoloadOne is a program that generates an autoload class for PHP.

403.4k](/packages/eftec-autoloadone)[ys-tools/default-theme-configuration-bundle

OroCommerce Default Theme Configuration Bundle

124.2k](/packages/ys-tools-default-theme-configuration-bundle)

PHPackages © 2026

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