Skip to content

PHP support library for the Humanitarian Exchange Language (HXL) data standard.

License

Notifications You must be signed in to change notification settings

unhcr/libhxl-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Humanitarian Exchange Language (HXL) PHP Library

Started by David Megginson, August 2014

Description

PHP5 library for parsing HXL-tagged data. For more information about HXL, see http://docs.hdx.rwlabs.org/hxl

Usage

require_once('HXL/HXL.php');

$input = fopen('MyFile.csv', 'r');
$hxl = new HXLReader($input);

foreach ($hxl as $row) {
  printf("Row %d:\n", $row->rowNumber);
  foreach ($row as $value) {
    printf(" %s=%s\n", $value->header->tag, $value->content);
  }
}

fclose($input);

Requirements

  • PHP5
  • PHPUnit to run unit tests.

About

PHP support library for the Humanitarian Exchange Language (HXL) data standard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.8%
  • Shell 0.2%