2017 © Pedro Peláez
 

library kyruus-sdk-php

Kyruus API wrapping in PHP

image

asymmetrik/kyruus-sdk-php

Kyruus API wrapping in PHP

  • Monday, February 27, 2017
  • by Sieabah
  • Repository
  • 10 Watchers
  • 0 Stars
  • 2,955 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 8 % Grown

The README.md

Kyruus PHP SDK

This is a PHP HTTPS-based API wrapper for the ProviderMatch search API provided by Kyruus., (*1)

This SDK provides helper methods to enable searching for doctors and other healthcare providers, as configured for your organization. To use this, you must first have a Kyruus account., (*2)

Once you have an account and have enabled API access, you can find out more about the search APIs at http://support.kyruus.com., (*3)

To Install

composer require asymmetrik/kyruus-php-sdk, (*4)

How to use

Before creating a client you must create a RequestCoordinator which simply is the OAuth wrapper for the SDK Client., (*5)

$coordinator = new Asymmetrik/Kyruus/Http/RequestCoordinator('https://kyruus-root-url', 'oauthuser', 'oauthpass')

You can then pass your coordinator to the SDK client with your organization, (*6)

$client = new Asymmetrik/Kyruus/SDK/Client($coordinator, 'myorg');

Building queries

The SDK currently employs no actual query builder and simply appends the data to the overall search query., (*7)

If your search only deals with providers you can directly call it from the SDK Client, alternatively you could get an instance of the builder and then call providers yourself, (*8)

$client->providers(); //QueryBuilder instance

$client->builder()->providers();

What the builder offers is a chainable interface to the API endpoint., (*9)

$query = $client->providers()
                ->per_page(20)
                ->page(2)
                ->facet('specialties')
                ->name('lemma');

From your query you can either directly get the results with get or compile your query into a string and pass it somewhere else., (*10)

$query->compile(); //https://root-url/endpoint/org/providers?attributes

$query->get(); //If successful you will get a json decoded response

The Versions

27/02 2017

dev-master

9999999-dev

Kyruus API wrapping in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Asymmetrik
by Christopher Sidell

api sdk kyruus

27/02 2017

dev-ghmaster

dev-ghmaster

Kyruus API wrapping in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Asymmetrik
by Christopher Sidell

api sdk kyruus