Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple Object Oriented wrapper for GoSquared API, written with PHP.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/GoSquared
.gitignore
LICENSE
README.md
composer.json

README.md

GoSquared API - PHP Client

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

Requirements

  • PHP >= 5.3.3 with cURL extension,
  • Buzz library,

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.

Something went wrong with that request. Please try again.