stloyd/gosquared-api

This package is abandoned and no longer maintained. No replacement package was suggested.

GoSquared API client

dev-master / 0.1.x-dev 2013-03-12 20:49 UTC

This package is auto-updated.

Last update: 2023-09-19 16:43:16 UTC


README

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.