lacunaphp/api-client

Installs: 27

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 2

Open Issues: 0

pkg:composer/lacunaphp/api-client

0.5.5 2016-03-10 01:13 UTC

This package is not auto-updated.

Last update: 2025-10-11 21:22:41 UTC


README

Build Status

Installing via Composer

The recommended method of installation is through Composer.

# Install Composer
curl -sS https://getcomposer.org/installer | php
composer require lacunaphp/api-client
{
	"require": {
		"lacunaphp/api-client": "~0.1"
	}
}

Usage

require_once('vendor/autoload.php');

use LacunaPHP\APIClient\Client;

$client = new Client('https://us1.lacunaexpanse.com');

try {
	$result = $client->empire->login([
		'name'     => 'empire-name',
		'password' => 'empire-password',
		'api_key'  => 'anonymous'
	]);
} catch($error) {
	...
}