PHP class containing methods wrapping the API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

PHP Class

PHP class containing methods which wrap the API

Consult the class and/or the API docs to establish which arguments are required.

Typical set up would be something like this.

// Our keys and coordinates
$apiKey = "f7c04eaf-5510-5878-xxxxx-acad3c60f";
$accessKey = "4c89693a-02c4-xxxx-xxxx-cdf801237e3d";
$lat = 53.6750352651078;
$lng = -2.4879334942895883;

// Create the instance
$fencer = new fencerAPI($apiKey, $accessKey);

// Set coordinates

// Example call to the API
// Determine if passed lat/lng is inside geofence with
// $accessKey of 4c89693a-02c4-xxxx-xxxx-cdf801237e3d

$inside = $fencer->positionInside();

// Returns an object. Here we just print it
echo "<hr>";


GPL license