Location: PHPKode > scripts > PHP wrapper for the Forrst API > martinbean-forrst-api-a189872/examples/01_hello_world.php
<?php

require_once('../src/forrst.php');

$forrst = new ForrstApi();

try {
    $result = $forrst->getStats();
    print '<pre>';
    print_r($result);
    print '</pre>';
}
catch (ForrstApiException $e) {
    echo sprintf('API exception (%d: %s)', $e->getCode(), $e->getMessage());
}
Return current item: PHP wrapper for the Forrst API