2017 © Pedro Peláez
 

library connector

Ease Access to the Khepri technology

image

khepri/connector

Ease Access to the Khepri technology

  • Thursday, June 30, 2016
  • by khepri-dev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

KhepriConnectorPhp

In the composer.json, on the require section add:, (*1)

"require": {, (*2)

"khepri/connector": "dev-master", (*3)

}, (*4)

You need to update your composer, (*5)

$ composer update, (*6)

Here is a simple sample use case, (*7)

<?php, (*8)

require './vendor/autoload.php';, (*9)

// Khepri URL (sandbox environment), (*10)

$khepri_url = 'http://sb.khepri.tech';, (*11)

// Initialize the client with your API-Key. You can find it on your Khepri account., (*12)

$api_key = 'MY_API_KEY';, (*13)

// you can create your instance with your khepri account here we select the instance 1, (*14)

$instance_id = 1;, (*15)

// init, (*16)

KhepriAPI::init($khepri_url, $api_key);, (*17)

// Simple ask, (*18)

$answer = KhepriAPI::ask($instance_id);, (*19)

// Simple success, (*20)

$chk = KhepriAPI::success($instance_id, $answer->solution);, (*21)

The Versions

30/06 2016

dev-master

9999999-dev

Ease Access to the Khepri technology

  Sources   Download

The Requires

  • php ^5.3.3 || ^7.0

 

by Gregory Gerard