2017 © Pedro Peláez
 

library loco

Loco SDK for PHP, including REST API client

image

loco/loco

Loco SDK for PHP, including REST API client

  • Sunday, May 13, 2018
  • by timwhitlock
  • Repository
  • 1 Watchers
  • 5 Stars
  • 34,837 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 23 Versions
  • 12 % Grown

The README.md

Loco SDK for PHP

Installation

Installation is via Composer., (*1)

Add the latest stable version of loco/loco to your project's composer.json file as follows:, (*2)

"require": {
  "loco/loco": "^2.0"
}

REST API Client

The SDK includes a REST client for the Loco API., (*3)

Client usage

The client is built on Guzzle. Basic usage is to construct with your API key and call the endpoint methods directly. The following example simply verifies your credentials:, (*4)

$client = Loco\Http\ApiClient::factory(['key' => 'your_api_key']);
$result = $client->authVerify();
printf("Authenticated as '%s'\n", $result['user']['name']);

See the example directory for more., (*5)

Advanced options

Additionally the ApiClient::factory method can take any arguments accepted by Guzzle's client constructor. See Request Options and Handlers and Middleware for full details., (*6)

Command Line Client

A Console interface supporting all methods of the Loco API is at bin/console. Just run it to see all the available options., (*7)

The console reads from config.json, but you can override your API key from the command line. Run the following to verify your credentials:, (*8)

bin/console loco:auth:verify -v -k <your_api_key> 

Documentation

Breaking changes in v2.0

Updating from Guzzle 3 to Guzzle 6 brought some necessary breaking changes with it. If you're upgrading from 1.0.18, please note the following:, (*9)

  • The structure of config.json has changed. Note in particular a single root object containing your values as per the example config.
  • The version number of the SDK is no longer synced to the version of the API. Each release will however be built against the latest version of the live service.

The Versions

13/05 2018

dev-master

9999999-dev https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

13/05 2018
27/03 2018

dev-legacy-1.x

dev-legacy-1.x https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

27/03 2018

2.0.0

2.0.0.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

09/10 2017

1.0.18

1.0.18.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

03/05 2017

1.0.17

1.0.17.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

07/04 2017

1.0.16

1.0.16.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

13/02 2017

1.0.15

1.0.15.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

19/03 2016

1.0.14

1.0.14.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

08/11 2015

1.0.13

1.0.13.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

01/09 2015

1.0.12

1.0.12.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

01/07 2015

1.0.11

1.0.11.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

12/06 2015

1.0.10

1.0.10.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

12/03 2015

1.0.9

1.0.9.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

15/07 2014

1.0.8

1.0.8.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

19/05 2014

1.0.7

1.0.7.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

07/05 2014

1.0.6

1.0.6.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

01/03 2014

1.0.5

1.0.5.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

24/02 2014

1.0.4

1.0.4.0 https://github.com/loco/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

19/02 2014

1.0.3

1.0.3.0 https://github.com/loco-app/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

16/02 2014

1.0.2

1.0.2.0 https://github.com/loco-app/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

08/02 2014

1.0.1

1.0.1.0 https://github.com/loco-app/loco-php-sdk

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

The Development Requires

translation i18n languages loco l10n

20/01 2014

1.0.0-alpha

1.0.0.0-alpha

Loco SDK for PHP, including REST API client

  Sources   Download

MIT

The Requires

 

translation languages loco l10n