2017 © Pedro Peláez
 

library associator-php-sdk

image

tarnawski/associator-php-sdk

  • Tuesday, March 20, 2018
  • by tarnawski
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Associator PHP SDK

This repository contains the open source PHP SDK that allows you to access the AssociatorAPI from your PHP application., (*1)

Build Status, (*2)

Installation

To install Associator PHP SDK, simply:, (*3)

composer require tarnawski/associator-php-sdk

Quick Start and Examples

<?php

use Associator\Client;
use Associator\Associator;

require_once '../vendor/autoload.php';

$client = new Client();
$associator = new Associator($client);
$associator->setApiKey('bf357212-41d4-41de-a0a5-01372c939583');

$result = $associator->getAssociations([2], 0.5, 0.5);

Prepare development environment:

In order to set application up you must follow by steps: 1. Install Docker (docs.docker.com/install/) and docker-compose (docs.docker.com/compose/install/) 2. Run containers (use -d flag for “detached” mode):, (*4)

docker-compose up -d
  1. Open in your browser: localhost:85

Test

The tests can be executed by running this command from the project directory:, (*5)

./vendor/bin/phpunit

The Versions

20/03 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Tomasz Tarnawski

26/12 2017