Download the PHP package arckinteractive/csv_process without Composer
On this page you can find all versions of the php package arckinteractive/csv_process. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arckinteractive/csv_process
More information about arckinteractive/csv_process
Files in arckinteractive/csv_process
Package csv_process
Short Description Provides an interface for uploading/processing csvs with custom callbacks for other plugins
License GPL-2.0
Homepage http://arckinteractive.com
Informations about the package csv_process
CSV Process for Elgg
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 -> Utilities -> 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 https://github.com/jumbojett/vroom
Integration
There are only 3 steps required to integrate to this plugin
-
Register a plugin hook handler to declare a callback function
-
Declare your callback function
- Define your callback function
Register your plugin hook handler:
Declare your callback function:
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
That's all. Sort out what to do with your data and let this plugin handle the interface, logging, row iterations, etc.