2017 © Pedro Peláez
 

library amber-hat

Lib designed to help PHP apps consume from REDCap's API

image

dcarbone/amber-hat

Lib designed to help PHP apps consume from REDCap's API

  • Thursday, January 7, 2016
  • by dcarbone
  • Repository
  • 2 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

amber-hat

A REDCap Client library written in PHP, (*1)

Installation

This lib requires the use of Composer., (*2)

"require": {
    "dcarbone/amber-hat": "0.4.*"
}

Client Creation

To get started, you will need 3 things:, (*3)

  1. Full URL to your REDCap installation's API endpoint (typically something like "https://redcap.mygreatinstitution.edu/api/")
  2. A REDCap API token
  3. A Temp directory on the server capable of handling potentially large files

Once you have those, you can immediately start exporting data for the project the token gives you access to:, (*4)

use DCarbone\AmberHat\AmberHatClient;

$client = new AmberHatClient(
    'https://redcap.mygreatinstitution.edu/api/',
    'mygreattoken',
    'my-cache-dir');  

Available Data Export methods:

Basic Export Data Object Structure

With the exception of Records, Project Information, and Record Field File, all export methods return a collection class which extends AbstractItemCollection. This collection class implements the following interfaces:, (*5)

The objects present in the collection are all classes which implement the ItemInterface interface. The interface requires concrete classes to implement the following:, (*6)

NOTE: For PHP 5.3 users, I have created a JsonSerializableCompatible interface, however you must execute json_encode on the result of the implemented method call, rather than on the object itself., (*7)

Ex:, (*8)

$json_string = json_encode($itemObject->jsonSerialize());

Available Data Import methods:

At the moment, no import methods are available. However, this feature is being worked on and will hopefully come to fruition soon., (*9)

The Versions

07/01 2016

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/dcarbone/amber-hat

Lib designed to help PHP apps consume from REDCap's API

  Sources   Download

GPL-2.0

The Requires

 

by Daniel Carbone

redcap red cap

22/12 2015

dev-master

9999999-dev https://github.com/dcarbone/amber-hat

Lib designed to help PHP apps consume from REDCap's API

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.3
  • ext-libxml *
  • ext-curl *
  • lib-libxml *
  • lib-curl *
  • ext-mbstring *
  • ext-pcre *
  • lib-pcre *
  • ext-date *
  • ext-spl *
  • dcarbone/curl-plus 2.0.*

 

by Daniel Carbone

redcap red cap

18/12 2015

dev-parser-fix

dev-parser-fix https://github.com/dcarbone/amber-hat

Lib designed to help PHP apps consume from REDCap's API

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.3
  • ext-libxml *
  • lib-libxml *
  • ext-curl *
  • lib-curl *
  • ext-mbstring *
  • ext-pcre *
  • lib-pcre *
  • ext-date *
  • ext-spl *
  • dcarbone/curl-plus 2.0.*

 

by Daniel Carbone

redcap red cap

18/12 2015

0.4.2

0.4.2.0 https://github.com/dcarbone/amber-hat

Lib designed to help PHP apps consume from REDCap's API

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.3
  • ext-libxml *
  • lib-libxml *
  • ext-curl *
  • lib-curl *
  • ext-mbstring *
  • ext-pcre *
  • lib-pcre *
  • ext-date *
  • ext-spl *
  • dcarbone/curl-plus 2.0.*

 

by Daniel Carbone

redcap red cap

15/12 2015

0.4.0

0.4.0.0 https://github.com/dcarbone/amber-hat

Lib designed to help PHP apps consume from REDCap's API

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.3
  • ext-libxml *
  • lib-libxml *
  • ext-curl *
  • lib-curl *
  • ext-mbstring *
  • ext-pcre *
  • lib-pcre *
  • ext-date *
  • ext-spl *
  • dcarbone/curl-plus 2.0.*

 

by Daniel Carbone

redcap red cap

11/12 2015

0.3.0

0.3.0.0 https://github.com/dcarbone/amber-hat

Lib designed to help PHP apps consume from REDCap's API

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.3
  • ext-libxml *
  • ext-curl *

 

by Daniel Carbone

redcap red cap

11/12 2015

0.2.0

0.2.0.0 https://github.com/dcarbone/amber-hat

Lib designed to help PHP apps consume from REDCap's API

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.3
  • ext-libxml *
  • ext-curl *

 

by Daniel Carbone

redcap red cap

09/12 2015

0.1.0

0.1.0.0

Lib designed to help PHP apps consume from REDCap's API

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.3
  • ext-libxml *
  • ext-curl *

 

by Daniel Carbone

redcap red cap