2017 © Pedro Peláez
 

library halo-api

A simple Object Oriented PHP API client for the halo api.

image

halo-api/halo-api

A simple Object Oriented PHP API client for the halo api.

  • Tuesday, July 18, 2017
  • by acrobat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 29 % Grown

The README.md

PHP Halo API Build Status

A simple Object Oriented wrapper for Halo API, (*1)

Getting started

Features

  • Follows PSR-4 conventions and coding standard
  • Light and fast by lazy loading of API classes
  • Extensively tested
  • Decoupled from specific HTTP transport protocols by using HTTPlug

Install

Then run the following command to require the library and install a http transport adapter:, (*2)

composer require halo-api/halo-api php-http/guzzle6-adapter "^1.1"

Usage

Example code on how to use the api client, (*3)

<?php

require_once '/vendor/autoload.php';

$guzzleClient = new \Http\Adapter\Guzzle6\Client();
$builder = new \HaloApi\HttpClient\Builder($guzzleClient);

// Constructing and passing the builder is optional. The client will use
// auto discovery of the available http client to construct the builder (See mininal example)
$client = new \HaloApi\Client('apikey', $builder);

$result = $client->halo5Metadata()->campaignMissions();

// Or with minimal setup (an httplug client adapter must be installed)
$client = new \HaloApi\Client('apikey');

$result = $client->halo5Metadata()->campaignMissions();

Contribute

Please do! The source code is hosted at GitHub. If you want a feature or discover a bug, open an issue or a pull request., (*4)

For other updates, follow me on Twitter: @jeroenthora., (*5)

License

This project is released under the MIT License., (*6)

The Versions

18/07 2017

dev-master

9999999-dev

A simple Object Oriented PHP API client for the halo api.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeroen Thora

api halo

18/07 2017

v0.3.0

0.3.0.0

A simple Object Oriented PHP API client for the halo api.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeroen Thora

api halo

06/06 2017

v0.2.0

0.2.0.0

A simple Object Oriented PHP API client for the halo api.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeroen Thora

05/06 2017

v0.1.0

0.1.0.0

A simple Object Oriented PHP API client for the halo api.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeroen Thora