PHPackages                             arckinteractive/csv\_process - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. arckinteractive/csv\_process

ActiveElgg-plugin[PDF &amp; Document Generation](/categories/documents)

arckinteractive/csv\_process
============================

Provides an interface for uploading/processing csvs with custom callbacks for other plugins

2.0.1(10y ago)11102[1 issues](https://github.com/arckinteractive/csv_process/issues)GPL-2.0PHPPHP &gt;=5.5

Since Dec 29Pushed 10y ago9 watchersCompare

[ Source](https://github.com/arckinteractive/csv_process)[ Packagist](https://packagist.org/packages/arckinteractive/csv_process)[ Docs](http://arckinteractive.com)[ RSS](/packages/arckinteractive-csv-process/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

CSV Process for Elgg
====================

[](#csv-process-for-elgg)

[![Elgg 2.0+](https://camo.githubusercontent.com/c1093c4da025a62606853d6b5709ba255e5a26fc1d0545a069adec1597374ff1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d253343253344322e302e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/c1093c4da025a62606853d6b5709ba255e5a26fc1d0545a069adec1597374ff1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d253343253344322e302e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

This is intended for developers who routinely use csvs for functions such as data imports.

This plugin aims to take much of the legwork out of csv processing. It provides an admin page for uploading/selecting the csv, selecting the function to process the csv, setting csv specific settings, and watching/downloading a log file showing how the script performed.

The form for handling csv functions is found at Admin -&gt; Utilities -&gt; CSV Processing

\##Installation

Install/unzip/clone to the mod directory of your elgg installation

The directory should be named csv\_process

Enable the plugin through the admin plugins page

\##Dependencies

This plugin requires the vroom plugin

\##Integration

There are only 3 steps required to integrate to this plugin

1. Register a plugin hook handler to declare a callback function
2. Declare your callback function
3. Define your callback function

Register your plugin hook handler:

```
elgg_register_plugin_hook_handler('csv_process', 'callbacks', 'myplugin_csv_callbacks');

```

Declare your callback function:

```
function myplugin_csv_callbacks($hook, $type, $return, $params) {
    $return['myplugin_csv_process'] = elgg_echo('myplugin:handler:label');
    return $return;
}

```

The return value is an associative array with your callback function name as the key and a label describing the function as a value. These will be used to populate the dropdown input for selecting how to process the csv.

Define your callback function

```
/**
 *
 *  @params array()
 */
function myplugin_csv_process($params) {

    static $skipped;

    // you can always know what line you are on with $params
    if ($params['line'] == 1) {
        // first line is our column headers, nothing to do here
        return;
    }

    // the $params['last'] flag indicates that there are is no more data
    // this can be used to log any final tallies or information
    // when the 'last' flag is true data will be an empty array
    if ($params['last']) {
        return "{$params['line']} lines processed, {$skipped} skipped users";
    }

    // our data is an array in $params['data']
    // do something with it
    $user = get_user($params['data'][0]);

    if (!$user) {
        $skipped++;
        return; // nothing to do here
    }

    // we have a user from our data, import something
    $user->food = $params['data'][1];

    // a returned string from the function will automatically be logged
    // but you can always log extra stuff yourself
    csv_process\log("my log message", $params);

    return 'this will also be logged!';
}

```

That's all. Sort out what to do with your data and let this plugin handle the interface, logging, row iterations, etc.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.6% 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

Every ~0 days

Total

2

Last Release

3837d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5071b1cd852e094b3f564962a625e04c227adc73af30c5b46b243ab8f20154a7?d=identicon)[hypeJunction](/maintainers/hypeJunction)

---

Top Contributors

[![beck24](https://avatars.githubusercontent.com/u/738363?v=4)](https://github.com/beck24 "beck24 (12 commits)")[![hypeJunction](https://avatars.githubusercontent.com/u/1202761?v=4)](https://github.com/hypeJunction "hypeJunction (5 commits)")

---

Tags

pluginelggcsvimport

### Embed Badge

![Health badge](/badges/arckinteractive-csv-process/health.svg)

```
[![Health](https://phpackages.com/badges/arckinteractive-csv-process/health.svg)](https://phpackages.com/packages/arckinteractive-csv-process)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.9k157.3M873](/packages/maatwebsite-excel)[league/csv

CSV data manipulation made easy in PHP

3.5k182.1M850](/packages/league-csv)[goodby/csv

CSV import/export library

9865.7M25](/packages/goodby-csv)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[avadim/fast-excel-reader

Lightweight and very fast XLSX Excel Spreadsheet and CSV Reader in PHP

107737.8k10](/packages/avadim-fast-excel-reader)[ddeboer/data-import-bundle

A Symfony2 bundle for the ddeboer/data-import library

681.3M1](/packages/ddeboer-data-import-bundle)

PHPackages © 2026

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