Skip to content

lacunaphp/api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LacunaPHP API Client

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) {
	...
}

About

PHP API Client for Lacuna Expanse

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages