Home

Awesome

GoSquared API - PHP Client

A simple Object Oriented wrapper for GoSquared API, written with PHP.

Requirements

Autoload

The new version of gosquared-api using Composer. The first step to use gosquared-api is to download composer:

$ curl -s http://getcomposer.org/installer | php

Then we have to install our dependencies using:

$ php composer.phar install

Now we can use autoloader from Composer by:

{
    "require": {
        "stloyd/gosquared-api": "*@dev"
    }
}

gosquared-api follows the PSR-0 convention names for its classes, which means you can easily integrate gosquared-api classes loading in your own autoloader.

Basic usage of gosquared-api client

<?php

// This file is generated by Composer
require_once 'vendor/autoload.php';

$client = new GoSquared\Client();

echo $client->api('time')->show();

License

gosquared-api is licensed under the MIT License - see the LICENSE file for details.