PHPH1 Class Documentation

phph1.php

PHPH1 is a PHP class used to send JSON requests to the Harmony Node API and return the data in an array/JSON format.

The PHPH1 class can also be invoked by a single PHP page hosted locally that will use GET data to fetch a result. The output can also be converted to JSON data (see phph1_call.php) with PHP's json_encode() method and returned to the page for remote queries using scripting languages such as Javascript. This file, What is in the inc/boot.php file, and inc/config.php must be included in your project before invoking the PHPH1 class, for example, require_once('inc/config.php'); require_once('inc/phph1.php');. Once included the phph1 class can be invoked by setting a handle. In this project, inc/boot.php is included and invokes everything, checks if the Explorer settings have been changed, and validates most major required inputs prior to using any time/cycles to check any other input and sending the API call. You can use boot.php as an example to integrate things into your own custom project.

Tags
filesource

Interfaces, Classes, Traits and Enums

phph1
The PHPH1 wrapper class.

Search results